code: def match_buffer_func() -> None:
      with T.block("root"):
          A = T.alloc_buffer((128, 128), "float32")
          B = T.alloc_buffer((128, 128), "float32")
          T.reads([])
          T.writes([])
          # Need add read/write region manually to avoid triggering block access region detector
          for i, j in T.grid(8, 8):
              with T.block("block"):
                  vi, vj = T.axis.remap("SS", [i, j])
                  T.reads(
                      B[
                          vi * 16 + 2 : vi * 16 + 12,
                          vj * 16 + 2 : vj * 16 + 16,
                      ]
                  )
                  T.writes(
                      A[vi * 16 : vi * 16 + 16, vj * 16 : vj * 16 + 16]
                  )
                  AA = T.match_buffer(
                      A[vi * 16 : vi * 16 + 16, vj * 16 : vj * 16 + 16],
                      (16, 16),
                  )
                  B0 = T.match_buffer(
                      B[
                          vi * 16 + 2 : vi * 16 + 6,
                          vj * 16 + 2 : vj * 16 + 6,
                      ],
                      (4, 4),
                  )
                  B1 = T.match_buffer(
                      B[
                          vi * 16 + 8 : vi * 16 + 12,
                          vj * 16 + 8 : vj * 16 + 16,
                      ],
                      (4, 8),
                  )
                  for ii, jj in T.grid(16, 16):
                      with T.block("AAA"):
                          vii, vjj = T.axis.remap("SS", [ii, jj])
                          T.reads([])
                          T.writes(AA[vii, vjj])
                          AAA = T.match_buffer(AA[vii, vjj], ())
                          AAA[()] = 1.0
                  T.evaluate(B0.data)
                  T.evaluate(B1.data)
  
imports: import pytest
  import tvm
  from tvm import tir
  from tvm.script import tir
  from tvm.ir import Range
label_desc: Use image node_id 2 for calling a global function with example usage: match_buffer_func() without return types