code: def test_block_access_region_detector():
      block = func.body.block.body.block
      alloc_buffers = func.body.block.alloc_buffers
      buffer_var_map = {buf.data: buf for buf in alloc_buffers}
      ret = tir.analysis.get_block_access_region(block, buffer_var_map)
  
      tvm.ir.assert_structural_equal(block.reads, ret[0])
      tvm.ir.assert_structural_equal(block.writes, ret[1])
      D = alloc_buffers[-1]
      tvm.ir.assert_structural_equal(
          [tvm.tir.BufferRegion(D, [Range(0, 128), Range(0, 128)])],
          ret[2],
      )
  
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 11 for calling a global function with example usage: test_block_access_region_detector() without return types