code: def test_isin():
      element = 2 * arange(4, chunk_size=1).reshape(2, 2)
      test_elements = [1, 2, 4, 8]
  
      mask = isin(element, test_elements)
      assert mask.shape == (2, 2)
      assert mask.dtype == np.bool_
  
      mask, element = tile(mask, element)
  
      assert len(mask.chunks) == len(element.chunks)
      assert len(mask.op.inputs[1].chunks) == 1
      assert mask.chunks[0].inputs[0] is element.chunks[0].data
  
      element = 2 * arange(4, chunk_size=1).reshape(2, 2)
      test_elements = tensor([1, 2, 4, 8], chunk_size=2)
  
      mask = isin(element, test_elements, invert=True)
      assert mask.shape == (2, 2)
      assert mask.dtype == np.bool_
  
imports: import numpy
  import pytest
  from ....core import tile
  from ....core.operand import OperandStage
  from ...datasource import ones, tensor, arange
  from ..None import transpose, broadcast_to, where, argwhere, array_split, split, squeeze, result_type, repeat, copyto, isin, moveaxis, TensorCopyTo, atleast_1d, atleast_2d, atleast_3d, ravel, searchsorted, unique, sort, partition, topk, to_gpu, to_cpu
label_desc: Use image node_id 15 for calling a global function with example usage: test_isin() without return types