code: def test_basic(dev, target):
      mod, params = mlp.get_workload(batch_size=1)
      if not profiler_vm.enabled():
          return
  
      exe = relay.vm.compile(mod, target, params=params)
      code, lib = exe.save()
      des_exe = tvm.runtime.vm.Executable.load_exec(code, lib)
      vm = profiler_vm.VirtualMachineProfiler(des_exe, dev)
  
      data = np.random.rand(1, 1, 28, 28).astype("float32")
      res = vm.profile(tvm.nd.array(data), func_name="main")
      assert "softmax" in str(res)
  
file_path: tvm/tests/python/runtime/test_runtime_vm_profiler.py
imports: import numpy
  import tvm
  import tvm.testing
  from tvm.runtime import profiler_vm
  from tvm import relay
  from tvm.relay.testing import mlp
label_desc: Use image node_id 1 for calling a global function with example usage: test_basic(dev, target) without return types