code: def test_opaque_access_with_tvm_access_ptr():
      block = (
          opaque_access_with_tvm_access_ptr_func.body.block.body.block
      )
      alloc_buffers = (
          opaque_access_with_tvm_access_ptr_func.body.block.alloc_buffers
      )
      buffer_var_map = {buf.data: buf for buf in alloc_buffers}
  
      ret0 = tir.analysis.get_block_read_write_region(
          block, buffer_var_map
      )
      ret1 = tir.analysis.get_block_access_region(block, buffer_var_map)
      tvm.ir.assert_structural_equal(block.reads, ret0[0])
      tvm.ir.assert_structural_equal(block.writes, ret0[1])
      with pytest.raises(ValueError):
          tvm.ir.assert_structural_equal(ret0[0], ret1[0])
      with pytest.raises(ValueError):
          tvm.ir.assert_structural_equal(ret0[1], ret1[1])
  
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 14 for calling a global function with example usage: test_opaque_access_with_tvm_access_ptr() without return types