code: def run_opt_pass(expr, opt_pass):
      assert isinstance(opt_pass, tvm.transform.Pass)
      mod = tvm.IRModule.from_expr(expr)
      mod = tvm.relay.transform.InferType()(mod)
      mod = opt_pass(mod)
      return mod["main"]
  
file_path: tvm/tests/python/relay/test_pass_combine_parallel_dense.py
imports: import tvm
  import tvm.testing
  from tvm import relay
  from tvm.relay import transform
label_desc: Use image node_id 2 for calling a global function with example usage: run_opt_pass(expr, opt_pass) and returns: mod