code: def test_only_one_operator():
      # fmt: off
      @tvm.script.ir_module
      class InputModule:
          @T.prim_func
          def main(buffer2: T.Buffer((128,), "uint8"), buffer3: T.Buffer((32,), "uint8")) -> None:
              # function attr dict
              T.func_attr({"from_legacy_te_schedule": True, "global_symbol": "main", "tir.noalias": True})
              buffer1 = T.Buffer([8192], "int8")
              buffer10 = T.Buffer([2048], "int8")
              # body
              p1_data = T.allocate([128], "uint8", "global")
              p1 = T.Buffer([128], "uint8", data=p1_data)
              p4_data = T.allocate([32], "uint8", "global")
              p4 = T.Buffer([32], "uint8", data=p4_data)
              T.evaluate(T.call_extern("ethosu_copy", buffer2[0], 128, p1[0], dtype="handle"))
              T.evaluate(T.call_extern("ethosu_copy", buffer3[0], 32, p4[0], dtype="handle"))
              T.evaluate(T.call_extern("ethosu_conv2d", "int8", 16, 16, 32, 16, 0, 16, buffer1[0], 0, 0, 0, T.float32(0.5), 10, "NHWC", 512, 32, 1, "int8", 16, 16, 2, 16, 0, 16, buffer10[0], 0, 0, 0, T.float32(0.25), 14, "NHWC", 128, 8, 1, 1, 1, 1, 1, 1, 1, p1[0], 128, 12, p4[0], 32, 0, 0, 0, 0, "NONE", 0, 0, "TFL", "NONE", 0, 0, 0, dtype="handle"))
  
  
      @tvm.script.ir_module
      class ReferenceModule:
          @T.prim_func
          def main(buffer2: T.Buffer((160,), "uint8")) -> None:
              # function attr dict
              T.func_attr({"from_legacy_te_schedule": True, "global_symbol": "main", "tir.noalias": True})
              buffer1 = T.Buffer([8192], "int8")
              buffer10 = T.Buffer([2048], "int8")
              # body
              p4_data = T.allocate([160], "uint8", "global")
              p4 = T.Buffer([160], "uint8", data=p4_data)
              T.evaluate(T.call_extern("ethosu_copy", buffer2[0], 160, p4[0], dtype="handle"))
              T.evaluate(T.call_extern("ethosu_conv2d", "int8", 16, 16, 32, 16, 0, 16, buffer1[0], 0, 0, 0, T.float32(0.5), 10, "NHWC", 512, 32, 1, "int8", 16, 16, 2, 16, 0, 16, buffer10[0], 0, 0, 0, T.float32(0.25), 14, "NHWC", 128, 8, 1, 1, 1, 1, 1, 1, 1, p4[0], 128, 12, p4[128], 32, 0, 0, 0, 0, "NONE", 0, 0, "TFL", "NONE", 0, 0, 0, dtype="handle"))
      # fmt: on
      const_dict = {
          0: np.array([0, 10], dtype=np.uint8),
          1: np.array([1, 11], dtype=np.uint8),
      }
      new_const_dict = {
          0: np.concatenate((const_dict[0], const_dict[1]))
      }
      test_mod, const_dict = MergeConstants(const_dict)(InputModule)
      reference_mod = ReferenceModule
      tvm.ir.assert_structural_equal(test_mod, reference_mod, True)
      check_const_dictionaries(const_dict, new_const_dict)
  
file_path: tvm/tests/python/contrib/test_ethosu/test_merge_constants.py
imports: import pytest
  import tvm
  from tvm.script import tir
  from tvm.relay.backend.contrib.ethosu.tir.passes import MergeConstants
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: test_only_one_operator() without return types