code: def test_static_callback():
      dtype = "int64"
      n = te.size_var("n")
      Ab = tvm.tir.decl_buffer((n,), dtype)
      i = te.size_var("i")
      ib = tvm.tir.ir_builder.create()
      A = ib.buffer_ptr(Ab)
      cp = te.thread_axis((0, 1), "cop")
      finit = tvm.tir.StringImm("TVMBackendRunOnce")
      ib.scope_attr(cp, "coproc_uop_scope", finit)
      with ib.for_range(0, n, "i", kind="parallel") as i:
          A[i] = A[i] + 1
      stmt = ib.get()
  
      mod = tvm.IRModule.from_expr(
          tvm.tir.PrimFunc([Ab], stmt).with_attr(
              "global_symbol", "ramp"
          )
      )
      f = tvm.driver.build(mod, target="llvm")
      a = tvm.nd.array(np.zeros(10, dtype=dtype))
      f(a)
      f(a)
      np.testing.assert_equal(a.numpy(), np.ones(a.shape[0]))
  
imports: import tvm
  from tvm import te
  import ctypes
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_static_callback() without return types