code: def test_long_fromvoidptr(self):
      # Test PyLong_FromVoidPtr()
      fromvoidptr = _testcapi.pylong_fromvoidptr
      obj = object()
      x = fromvoidptr(obj)
      y = fromvoidptr(NULL)
      self.assertIsInstance(x, int)
      self.assertGreaterEqual(x, 0)
      self.assertIsInstance(y, int)
      self.assertEqual(y, 0)
      self.assertNotEqual(x, y)
  
imports: import unittest
  import sys
  from test.support import import_helper
label_desc: Use image node_id 6 for calling the LongTests obj's underlying member method code with example usage: obj.test_long_fromvoidptr() without return types