code: def run_opt_pass(expr, opt_pass, params=None):
      assert isinstance(opt_pass, tvm.transform.Pass)
  
      mod = tvm.IRModule.from_expr(expr)
      if params is not None:
          mod["main"] = bind_params_by_name(mod["main"], params)
      mod = opt_pass(mod)
      entry = mod["main"]
      return entry if isinstance(expr, relay.Function) else entry.body
  
imports: import numpy
  import pytest
  import tvm
  from tvm import te
  from tvm import relay
  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
  import tvm.topi.testing
  import tvm.testing
label_desc: Use image node_id 1 for calling a global function with example usage: run_opt_pass(expr, opt_pass, params) and returns: unknown