code: def test_data_dependent_access():
      A = te.placeholder((10,), name="A")
      B = te.placeholder((10,), name="B", dtype="int32")
      C = te.compute((10,), lambda i: A[B[i]])
  
      func = te.create_prim_func([C, A, B])
      func = tvm.build(func)
  
      a_np = np.random.uniform(size=(10,)).astype(A.dtype)
      b_np = np.arange(10, dtype=B.dtype)
      c = tvm.nd.array(np.zeros(10, dtype=C.dtype))
      func(c, tvm.nd.array(a_np), tvm.nd.array(b_np))
      tvm.testing.assert_allclose(a_np[b_np], c.numpy())
  
imports: import numpy
  import tvm
  import tvm.testing
  from tvm import te, tir, topi, relay
  from tvm.script import tir
  import pytest
label_desc: Use image node_id 27 for calling a global function with example usage: test_data_dependent_access() without return types