code: def isin(
      elements: tf.Tensor,
      test_elements: tf.Tensor,
      /,
      *,
      assume_unique: bool = False,
      invert: bool = False,
  ) -> tf.Tensor:
      input_shape = elements.shape
  
      if tf.rank(elements) == 0:
          elements = tf.reshape(elements, [1])
      if tf.rank(test_elements) == 0:
          test_elements = tf.reshape(test_elements, [1])
      if not assume_unique:
          test_elements = tf.unique(tf.reshape(test_elements, [-1]))[0]
  
      elements = tf.reshape(elements, [-1])
      test_elements = tf.reshape(test_elements, [-1])
  
      output = tf.reduce_any(
          tf.equal(tf.expand_dims(elements, -1), test_elements), axis=-1
      )
      return tf.reshape(output, input_shape) ^ invert
  
imports: from typing import Optional, Union, Sequence, Callable, Tuple
  import numpy
  import multiprocessing
  from numbers import Number
  import tensorflow
  import ivy
  from ivy.functional.ivy.gradients import _is_variable
  from ivy.func_wrapper import with_unsupported_dtypes
  from ivy.utils.exceptions import _check_inplace_update_support
  from .None import backend_version
  from ...ivy.general import _broadcast_to
label_desc: Use image node_id 25 for calling a global function with example usage: isin() and returns: unknown