def duplicated(values, keep='<STR_LIT>'):
values, dtype, ndtype = _ensure_data(values)<EOL>f = getattr(htable, "<STR_LIT>".format(dtype=ndtype))<EOL>return f(values, keep=keep)<EOL>
Return boolean ndarray denoting duplicate values.

.. versionadded:: 0.19.0

Parameters
----------
values : ndarray-like
    Array over which to check for duplicate values.
keep : {'first', 'last', False}, default 'first'
    - ``first`` : Mark duplicates as ``True`` except for the first
      occurrence.
    - ``last`` : Mark duplicates as ``True`` except for the last
      occurrence.
    - False : Mark all duplicates as ``True``.

Returns
-------
duplicated : ndarray