code: def test_stack_vm_basic():
      a = tvm.nd.array(np.zeros(10, dtype="float32"))
  
      @tvm.register_func
      def tvm_call_back_get_shape(shape0):
          print(shape0)
          assert shape0 == a.shape[0]
  
      n = te.size_var("n")
      Ab = tvm.tir.decl_buffer((n,), "float32")
      stmt = tvm.tir.Evaluate(
          tvm.tir.call_packed("tvm_call_back_get_shape", Ab.shape[0])
      )
  
      mod = tvm.IRModule.from_expr(
          tvm.tir.PrimFunc([Ab], stmt).with_attr(
              "global_symbol", "print_shape"
          )
      )
  
      run_jit(mod, lambda f: f(a))
  
file_path: tvm/tests/python/codegen/test_target_codegen_vm_basic.py
imports: import tvm
  import tvm.testing
  from tvm import te
  from tvm.script import tir, ir
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: test_stack_vm_basic() without return types