code: def isin(element, test_elements, assume_unique=False, invert=False):
      """Calculates element in ``test_elements``, broadcasting over ``element``
      only. Returns a boolean array of the same shape as ``element`` that is
      ``True`` where an element of ``element`` is in ``test_elements`` and
      ``False`` otherwise.
  
      Parameters
      ----------
      element : cupy.ndarray
          Input array.
      test_elements : cupy.ndarray
          The values against which to test each
          value of ``element``. This argument is flattened if it is an
          array or array_like.
      assume_unique : bool, optional
          Ignored
      invert : bool, optional
          If ``True``, the values in the returned array
          are inverted, as if calculating element not in ``test_elements``.
          Default is ``False``.
  
      Returns
      -------
      y : cupy.ndarray, bool
          Has the same shape as ``element``. The values ``element[isin]``
          are in ``test_elements``.
  
      """
      return in1d(
          element,
          test_elements,
          assume_unique=assume_unique,
          invert=invert,
      ).reshape(element.shape)
  
file_path: cupy/cupy/_logic/truth.py
imports: import warnings
  import cupy
  from cupy._core import _routines_logic
  from cupy._core import _fusion_thread_local
  from cupy._sorting import search
  from cupy import _util
label_desc: Use image node_id 5 for calling a global function with example usage: isin(element, test_elements, assume_unique, invert) and returns: in1d