code: def run_opt_pass(expr, passes):
      passes = passes if isinstance(passes, list) else [passes]
      mod = tvm.IRModule.from_expr(expr)
      seq = tvm.transform.Sequential(passes)
      with tvm.transform.PassContext(opt_level=3):
          mod = seq(mod)
      entry = mod["main"]
      return entry if isinstance(expr, relay.Function) else entry.body
  
imports: import pytest
  import sys
  import numpy
  import tvm
  import tvm.testing
  from tvm import te
  from tvm import relay
  from tvm.relay.analysis import detect_feature
  from tvm.relay import op, create_executor, transform
  from tvm.relay.prelude import Prelude
  from tvm.relay.testing import count
  from tvm.relay.analysis import Feature
label_desc: Use image node_id 1 for calling a global function with example usage: run_opt_pass(expr, passes) and returns: unknown