code: def in1d(ar1, ar2, assume_unique=False, invert=False):
      del assume_unique
      ar1_flat = ivy.flatten(ar1)
      ar2_flat = ivy.flatten(ar2)
      if invert:
          return (ar1_flat[:, None] != ar2_flat[None, :]).all(axis=-1)
      else:
          return (ar1_flat[:, None] == ar2_flat[None, :]).any(axis=-1)
  
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  from ivy.functional.frontends.jax.array import Array
  import ivy.functional.frontends.jax.numpy
  from ivy.functional.frontends.jax.func_wrapper import to_ivy_arrays_and_back, outputs_to_frontend_arrays, handle_jax_dtype, inputs_to_ivy_arrays
  from ivy.func_wrapper import handle_out_argument
  from ivy import with_unsupported_device_and_dtypes
label_desc: Use image node_id 20 for calling a global function with example usage: in1d(ar1, ar2, assume_unique, invert) and returns: unknown, unknown