code: def test_buffer_access_ptr():
      m = te.size_var("m")
      n = te.size_var("n")
      Ab = tvm.tir.decl_buffer((m, n), "float32", strides=[n + 1, 1])
      aptr = Ab.access_ptr("rw")
      assert tvm.ir.structural_equal(aptr.args[3], Ab.strides[0] * m)
      assert aptr.args[0].dtype == Ab.dtype
      assert aptr.args[4].value == Buffer.READ | Buffer.WRITE
      aptr = Ab.access_ptr("w")
      assert aptr.args[4].value == Buffer.WRITE
  
file_path: tvm/tests/python/tir-base/test_tir_buffer.py
imports: import pytest
  import tvm
  import tvm.testing
  from tvm import te
  from tvm.tir import Buffer
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: test_buffer_access_ptr() without return types