code: def test_static_init():
      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()
      handle = tvm.tir.call_intrin("handle", "tir.tvm_static_handle")
      ib.emit(tvm.tir.call_packed("test_static_callback", handle, Ab))
  
      @tvm.register_func("test_static_callback")
      def test_cb(sh, A):
          assert isinstance(sh, ctypes.c_void_p)
          return sh
  
      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)
  
imports: import tvm
  from tvm import te
  import ctypes
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: test_static_init() and returns: sh