code: def test_copy_to_buffer_with_local_scope_max_copy_movements_n(
      max_copy_movements,
  ):
      # fmt: off
      @tvm.script.ir_module
      class ReferenceModule:
          @T.prim_func
          def main() -> None:
              T.func_attr({"from_legacy_te_schedule": True, "global_symbol": "main", "tir.noalias": True})
              buffer1 = T.Buffer([64], "uint8")
              buffer2 = T.Buffer([48], "uint8")
              buffer3 = T.Buffer([48], "uint8")
              buffer4 = T.Buffer([256], "uint8")
              buffer5 = T.Buffer([16], "uint8")
              buffer6 = T.Buffer([48], "uint8")
              buffer7 = T.Buffer([256], "uint8")
              buffer8 = T.Buffer([64], "uint8")
              # body
              p1 = T.decl_buffer([48], "uint8")
              p2 = T.decl_buffer([48], "uint8")
              p3 = T.decl_buffer([256], "int8", scope="local")
              p4 = T.decl_buffer([256], "int8")
              p5 = T.decl_buffer([16], "uint8")
              p6 = T.decl_buffer([48], "uint8")
              p7 = T.decl_buffer([256], "int8", scope="local")
              T.evaluate(T.call_extern("ethosu_copy", buffer2[0], 48, p1[0], dtype="handle"))
              T.evaluate(T.call_extern("ethosu_copy", buffer3[0], 48, p2[0], dtype="handle"))
              T.evaluate(T.call_extern("ethosu_copy", buffer4[0], 256, p3[0], dtype="handle"))
              T.evaluate(T.call_extern("ethosu_copy", buffer5[0], 16, p5[0], dtype="handle"))
              T.evaluate(T.call_extern("ethosu_copy", buffer6[0], 48, p6[0], dtype="handle"))
              T.evaluate(T.call_extern("ethosu_conv2d", "int8", 4, 4, 4, 4, 0, 4, buffer1[0], 0, 0, 0, T.float32(0.00392081), -128, "NHWC", 16, 4, 1, "int8", 4, 4, 4, 4, 0, 4, p4[0], 0, 0, 0, T.float32(0.00839574), -128, "NHCWB16", 64, 16, 1, 1, 1, 1, 1, 1, 1, p1[0], 48, 0, p2[0], 48, 0, 0, 0, 0, "TANH", 0, 0, "TFL", "NONE", 0, 0, 0, dtype="handle"))
              T.evaluate(T.call_extern("ethosu_copy", buffer7[0], 256, p7[0], dtype="handle"))
              T.evaluate(T.call_extern("ethosu_depthwise_conv2d", "int8", 4, 4, 4, 4, 0, 4, p4[0], 0, 0, 0, T.float32(0.0078125), 0, "NHCWB16", 64, 16, 1, "int8", 4, 4, 4, 4, 0, 4, buffer8[0], 0, 0, 0, T.float32(0.00372155), -128, "NHWC", 16, 4, 1, 1, 1, 1, 1, 1, 1, p5[0], 16, 0, p6[0], 48, 0, 0, 0, 0, "TANH", 0, 0, "TFL", "NONE", 0, 0, 0, dtype="handle"))
      # fmt: on
  
      test_mod = CopyComputeReordering(max_copy_movements)(
          CopyToBufferWithLocalScope
      )
      reference_mod = ReferenceModule
      tvm.ir.assert_structural_equal(test_mod, reference_mod, True)
  
imports: import pytest
  import tvm
  from tvm.script import tir
  from tvm.relay.backend.contrib.ethosu.tir.passes import CopyComputeReordering
label_desc: Use image node_id 9 for calling a global function with example usage: test_copy_to_buffer_with_local_scope_max_copy_movements_n(max_copy_movements) without return types