code: def process(model_name):
      temp = utils.tempdir()
      model, params, input_dict = get_model(model_name)
  
      def run(mod, target, simplify=True, with_bnns=False):
          with tvm.transform.PassContext(opt_level=3):
              if simplify:
                  mod = simplify_model(mod)
              if with_bnns:
                  mod = partition_for_bnns(mod)
              graph_module = relay.build(
                  mod, target=target, params=params
              )
  
          lib_name = "deploy.tar"
          path_dso = temp.relpath(lib_name)
          graph_module.export_library(path_dso)
  
          dev = tvm.cpu(0)
          loaded_lib = tvm.runtime.load_module(path_dso)
  
          module = graph_executor.GraphModule(
              loaded_lib["default"](dev)
          )
          module.run()
          return module.get_output(0).numpy()
  
      res_llvm = run(model, TARGET, simplify=True, with_bnns=False)
      res_bnns = run(model, TARGET, simplify=True, with_bnns=True)
  
      tvm.testing.assert_allclose(
          res_llvm,
          res_bnns,
          atol=0.002,
          rtol=0.007,
      )
  
file_path: tvm/tests/python/contrib/test_bnns/test_onnx_topologies.py
imports: import pytest
  import tvm
  from tvm import relay
  from tvm.relay import transform
  from tvm.contrib import utils, graph_executor
  from tvm.contrib.download import download_testdata
  from tvm.relay.op.contrib.bnns import partition_for_bnns
  import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: process(model_name) and returns: module