code: def test_address2pointer(self):
      array = (c_int * 3)(42, 17, 2)
  
      address = addressof(array)
      ptr = cast(c_void_p(address), POINTER(c_int))
      self.assertEqual([ptr[i] for i in range(3)], [42, 17, 2])
  
      ptr = cast(address, POINTER(c_int))
      self.assertEqual([ptr[i] for i in range(3)], [42, 17, 2])
  
file_path: catboost/contrib/tools/python/src/Lib/ctypes/test/test_cast.py
imports: from ctypes import *
  from ctypes.test import need_symbol
  import unittest
  import sys
label_desc: Use image node_id 2 for calling the Test obj's underlying member method code with example usage: obj.test_address2pointer() without return types