code: def test_mobilenet(enable_usmp: bool, target_kind: str):
      """Full network test with Mobilenet"""
      ir_mod, params = testing.mobilenet.get_workload(batch_size=1)
      data_shape = [
          int(x) for x in ir_mod["main"].checked_type.arg_types[0].shape
      ]
      data = np.random.uniform(size=data_shape).astype("float32")
      inputs = {"data": data}
      ref_outputs = generate_ref_data(ir_mod, inputs, params)
  
      with tvm.transform.PassContext(
          opt_level=3,
          config={
              "tir.disable_vectorize": True,
              "tir.usmp.enable": enable_usmp,
          },
      ):
          mod = tvm.relay.build(
              ir_mod,
              params=params,
              target=target_kind,
              executor=backend.Executor(
                  "aot", {"interface-api": "packed"}
              ),
          )
  
      temp_dir = tvm.contrib.utils.TempDirectory()
      test_so_path = temp_dir / "test.so"
      mod.export_library(
          test_so_path, cc="c++", options=["-std=gnu++17", "-g3", "-O0"]
      )
      loaded_mod = tvm.runtime.load_module(test_so_path)
      runner = tvm.runtime.executor.AotModule(
          loaded_mod["default"](tvm.cpu(0))
      )
      runner.set_input(**inputs)
      runner.run()
      assert (
          runner.get_output(0).asnumpy()
          == list(ref_outputs.values())[0]
      ).all()
  
file_path: tvm/tests/python/relay/aot/test_cpp_aot.py
imports: import re
  import textwrap
  import numpy
  import pytest
  import tvm
  from tvm import IRModule
  from tvm import relay
  from tvm.relay import backend, testing
  from tvm.testing.aot import generate_ref_data
label_desc: Use image node_id 3 for calling a global function with example usage: test_mobilenet(enable_usmp, target_kind) without return types