code: def run_relay(func, data_tuple, is_dyn=False):
      target = "llvm"
      dev = tvm.device("llvm", 0)
      kind = "graph" if not is_dyn else "vm"
      relay_res = relay.create_executor(
          kind, device=dev, target=target
      ).evaluate(func)(*data_tuple)
  
      result = []
      relay_res = (
          relay_res if isinstance(relay_res, list) else [relay_res]
      )
      for res in relay_res:
          result.append(res.numpy())
  
      return result
  
imports: import pytest
  import numpy
  import onnxruntime
  import tvm
  from tvm import relay
  from tvm.contrib.target.onnx import to_onnx
  from tvm.relay.testing import run_infer_type
label_desc: Use image node_id 3 for calling a global function with example usage: run_relay(func, data_tuple, is_dyn) and returns: result