code: def run_opt_pass(expr, opt_pass):
      assert isinstance(opt_pass, tvm.transform.Pass)
  
      mod = tvm.IRModule.from_expr(expr)
      mod = relay.transform.InferType()(mod)
      mod = opt_pass(mod)
      entry = mod["main"]
      return entry if isinstance(expr, relay.Function) else entry.body
  
imports: import numpy
  import tvm
  import tvm.testing
  from tvm import relay
  from tvm.relay.backend import Executor
  from tvm.relay import transform
  from tvm.relay.build_module import bind_params_by_name
  from tvm.relay.testing import run_infer_type, create_workload
label_desc: Use image node_id 2 for calling a global function with example usage: run_opt_pass(expr, opt_pass) and returns: unknown