code: def test_buffer_access_ptr_offset():
      m = te.size_var("m")
      n = te.size_var("n")
      Ab = tvm.tir.decl_buffer((m, n), "float32")
      aptr = Ab.access_ptr("rw", offset=100)
      tvm.testing.assert_prim_expr_equal(aptr.args[2], 100)
      assert aptr.args[4].value == Buffer.READ | Buffer.WRITE
      v = te.size_var("int32")
      aptr = Ab.access_ptr("rw", offset=100 + 100 + v)
      tvm.testing.assert_prim_expr_equal(aptr.args[2], 200 + v)
      assert aptr.args[4].value == Buffer.READ | Buffer.WRITE
      aptr = Ab.access_ptr(
          "rw",
          offset=tvm.tir.call_extern(
              "int32", "test_call", 100 + 100 + v
          ),
      )
      tvm.testing.assert_prim_expr_equal(
          aptr.args[2],
          tvm.tir.call_extern("int32", "test_call", 200 + v),
      )
      assert aptr.args[4].value == Buffer.READ | 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 3 for calling a global function with example usage: test_buffer_access_ptr_offset() without return types