code: def test_long_asunsignedlonglong(self):
      # Test PyLong_AsUnsignedLongLong() and PyLong_FromUnsignedLongLong()
      asunsignedlonglong = _testcapi.pylong_asunsignedlonglong
      from _testcapi import ULLONG_MAX
  
      # round trip (object -> unsigned long long -> object)
      for value in (ULLONG_MAX, 0, 1, 1234):
          with self.subTest(value=value):
              self.assertEqual(asunsignedlonglong(value), value)
  
      self.assertEqual(asunsignedlonglong(IntSubclass(42)), 42)
      self.assertRaises(TypeError, asunsignedlonglong, Index(42))
      self.assertRaises(TypeError, asunsignedlonglong, MyIndexAndInt())
  
      self.assertRaises(OverflowError, asunsignedlonglong, -1)
      self.assertRaises(
          OverflowError, asunsignedlonglong, ULLONG_MAX + 1
      )
      self.assertRaises(TypeError, asunsignedlonglong, 1.0)
      self.assertRaises(TypeError, asunsignedlonglong, b"2")
      self.assertRaises(TypeError, asunsignedlonglong, "3")
      self.assertRaises(SystemError, asunsignedlonglong, NULL)
  
imports: import unittest
  import sys
  from test.support import import_helper
label_desc: Use image node_id 16 for calling the LongTests obj's underlying member method code with example usage: obj.test_long_asunsignedlonglong() without return types