code: def get_cpu_reference(mod, params1, input_shape, inputs):
      mod_fp32 = recast(
          mod, "float32", "float32", ops=["nn.conv2d", "add", "nn.relu"]
      )
      with relay.build_config(opt_level=3):
          graph, lib, params = relay.build(
              mod_fp32, "llvm", params=params1
          )
      ctx = tvm.cpu()
      m = graph_runtime.create(graph, lib, ctx)
      if isinstance(input_shape, dict):
          for key in input_shape:
              m.set_input(key, inputs[-1])
      else:
          m.set_input("data", inputs[-1])
      m.set_input(**params)
      m.run()
      return [
          m.get_output(0).asnumpy(),
      ]
  
file_path: tvm/tests/python/relay/opencl_texture/utils/adreno_utils.py
imports: import os
  import tvm
  import numpy
  from tvm import relay
  from tvm import autotvm
  from tvm import rpc
  from tvm.contrib import utils, ndk
  from tvm.relay import testing
  from tvm.relay.transform import recast
  from tvm.contrib import graph_runtime
  from tvm.runtime.vm import VirtualMachine
  import json
label_desc: Use image node_id 1 for calling a global function with example usage: get_cpu_reference(mod, params1, input_shape, inputs) and returns: list