code: def test_in1d_execute(setup, chunk_size, invert):
      rs = np.random.RandomState(0)
      raw1 = rs.randint(10, size=10)
      ar1 = mt.tensor(raw1, chunk_size=5)
      raw2 = np.arange(5)
      ar2 = mt.tensor(raw2, chunk_size=chunk_size)
      ar = mt.in1d(ar1, ar2, invert=invert)
      result = ar.execute().fetch()
      expected = np.in1d(raw1, raw2, invert=invert)
      np.testing.assert_array_equal(result, expected)
  
imports: import numpy
  import scipy.sparse
  import pandas
  import pytest
  from ....None import dataframe
  from ....None import tensor
  from ....None import execute, fetch
  from ....tests.core import require_cupy
  from ...datasource import tensor, ones, zeros, arange
  from ..None import copyto, transpose, moveaxis, broadcast_to, broadcast_arrays, where, expand_dims, rollaxis, atleast_1d, atleast_2d, atleast_3d, argwhere, array_split, split, hsplit, vsplit, dsplit, roll, squeeze, diff, ediff1d, flip, flipud, fliplr, repeat, tile, isin, searchsorted, unique, sort, argsort, partition, argpartition, topk, argtopk, trapz, shape, to_gpu, to_cpu, swapaxes
label_desc: Use image node_id 49 for calling a global function with example usage: test_in1d_execute(setup, chunk_size, invert) without return types