code: def test_cpu():
      mod, params = relay.testing.synthetic.get_workload()
      with relay.build_config(opt_level=3):
          complied_graph_lib = relay.build_module.build(
              mod, "llvm", params=params
          )
      data = np.random.uniform(-1, 1, size=input_shape(mod)).astype(
          "float32"
      )
      # raw api
      dev = tvm.cpu()
      gmod = complied_graph_lib["default"](dev)
      set_input = gmod["set_input"]
      run = gmod["run"]
      get_output = gmod["get_output"]
      set_input("data", tvm.nd.array(data))
      run()
      out = get_output(0).numpy()
      tvm.testing.assert_allclose(out, verify(data), atol=1e-5)
  
      # graph executor wrapper
      gmod = graph_executor.GraphModule(
          complied_graph_lib["default"](dev)
      )
      gmod.set_input("data", data)
      gmod.run()
      out = gmod.get_output(0).numpy()
      tvm.testing.assert_allclose(out, verify(data), atol=1e-5)
  
imports: import numpy
  import os
  from tvm import relay, runtime
  from tvm.relay import testing
  import tvm
  from tvm.contrib import graph_executor
  from tvm.contrib.debugger import debug_executor
  from tvm.contrib.cuda_graph import cuda_graph_executor
  import tvm.testing
label_desc: Use image node_id 4 for calling a global function with example usage: test_cpu() without return types