code: def test_int(self):
      pval = MockMemory.cur_ptr
      memptr = mock_alloc(1)
      assert pval == int(memptr)
  
imports: import unittest
  from cupy.cuda import pinned_memory
label_desc: Use image node_id 1 for calling the TestMemoryPointer obj's underlying member method code with example usage: obj.test_int() without return types