code: def test_disabled_pass_param():
      """
      Check 'disabled_pass' parameter in tune_relay. Should throw exception in
      case of correct work.
      """
      data_shape = [1, 4, 16, 16]
      weight_shape = [32, 4, 2, 2]
  
      data = relay.var("data", shape=data_shape, dtype="uint8")
      weight = relay.var("weight", shape=weight_shape, dtype="int8")
  
      op = relay.qnn.op.conv2d(
          data,
          weight,
          input_zero_point=relay.const(0),
          kernel_zero_point=relay.const(0),
          input_scale=relay.const(0.7),
          kernel_scale=relay.const(0.3),
          kernel_size=[2, 2],
          channels=32,
      )
      mod = tvm.IRModule.from_expr(op)
  
      weight_np = np.random.randint(-10, 10, size=weight_shape).astype(
          "int8"
      )
      params = {"weight": weight_np}
  
      executor = relay.backend.Executor("graph", {"link-params": True})
      mod = mod.with_attr("executor", executor)
  
      with tempfile.TemporaryDirectory() as work_dir:
          database = ms.relay_integration.tune_relay(
              mod=mod,
              target="llvm --num-cores=4",
              params=params,
              work_dir=work_dir,
              max_trials_global=4,
              strategy="replay-trace",
              disabled_pass=["qnn.Legalize"],
          )
  
      # Test failed, otherwise we can not reach this point.
      pytest.fail("'disabled_pass' argument does not work")
  
imports: import platform
  import tempfile
  from typing import List
  import numpy
  import pytest
  import tvm
  import tvm.testing
  from tvm import IRModule
  from tvm import meta_schedule
  from tvm import relay, te, tir
  from tvm._ffi import register_func
  from tvm.contrib import graph_executor
  from tvm.ir.transform import PassContext
  from tvm.meta_schedule.database import TuningRecord, Workload
  from tvm.meta_schedule.testing.relay_workload import get_network
  from tvm.meta_schedule.testing.tlcbench import load_quantized_bert_base
  from tvm.meta_schedule.tune_context import _normalize_mod
  from tvm.script import tir
  from tvm.target import Target
label_desc: Use image node_id 17 for calling a global function with example usage: test_disabled_pass_param() without return types