code: def test_without_preceding_pad():
      """Tests the pass FusePads when padding is not present before qnn.conv2d."""
      dtype = "int8"
      ifm_shape = (1, 56, 56, 64)
      ofm_shape = (1, 56, 56, 64)
      local_input = relay.var(
          "local_input", shape=ifm_shape, dtype=dtype
      )
      rng = np.random.default_rng(12321)
      kmin, kmax = get_dtype_range(dtype)
      local_weight = tvm.nd.array(
          rng.integers(
              kmin,
              high=kmax,
              size=(64, 3, 3, 64),
              dtype=dtype,
          )
      )
      local_weight = relay.const(local_weight, dtype)
      conv2d = relay.qnn.op.conv2d(
          local_input,
          local_weight,
          relay.const(1, "int32"),
          relay.const(1, "int32"),
          relay.const(1, "float32"),
          relay.const(1, "float32"),
          data_layout="NHWC",
          kernel_layout="OHWI",
          channels=64,
          kernel_size=(3, 3),
          padding=(1, 1, 1, 1),
          out_dtype="int32",
      )
      requantize = relay.qnn.op.requantize(
          conv2d,
          relay.const(1, "float32"),
          relay.const(1, "int32"),
          relay.const(1, "float32"),
          relay.const(1, "int32"),
          axis=0,
          out_dtype=dtype,
      )
      relu = relay.nn.relu(requantize)
      local_func = relay.Function(relay.analysis.free_vars(relu), relu)
      local_func = set_composite_func_attr(
          local_func, "cmsis-nn.qnn_conv2d"
      )
  
      mod = tvm.IRModule()
      ext_input = relay.var("ext_input", shape=ifm_shape, dtype=dtype)
      call_local_func = relay.Call(local_func, [ext_input])
      extern_func = relay.Function(
          relay.analysis.free_vars(call_local_func), call_local_func
      )
      extern_var = relay.GlobalVar("external_function")
      extern_func = set_external_func_attr(
          extern_func, "cmsis-nn", extern_var.name_hint
      )
      mod[extern_var] = extern_func
  
      main_input = relay.var("main_input", shape=ifm_shape, dtype=dtype)
      call_extern_func = relay.Call(extern_var, [main_input])
      main_func = relay.Function(
          relay.analysis.free_vars(call_extern_func), call_extern_func
      )
      main_func = relay.Function(
          [main_input],
          call_extern_func,
          relay.TensorType(ofm_shape, dtype),
      )
      main_var = relay.GlobalVar("main")
      mod[main_var] = main_func
  
      mod = relay.transform.InferType()(mod)
  
      mod = CMSISNNFusePads()(mod)
      pad_verifier = CheckForPadsWithinCompositeFunc()
      pad_verifier.visit_function(mod[extern_var])
      pad_verifier.assert_no_pads_within_func()
  
file_path: tvm/tests/python/contrib/test_cmsisnn/test_fuse_pads.py
imports: import numpy
  import pytest
  import tvm
  from tvm.testing.aot import get_dtype_range
  from tvm import relay
  from .utils import CheckForPadsWithinCompositeFunc
label_desc: Use image node_id 6 for calling a global function with example usage: test_without_preceding_pad() without return types