code: def test_endian_longlong(self):
      if sys.byteorder == "little":
          self.assertIs(c_longlong.__ctype_le__, c_longlong)
          self.assertIs(
              c_longlong.__ctype_be__.__ctype_le__, c_longlong
          )
      else:
          self.assertIs(c_longlong.__ctype_be__, c_longlong)
          self.assertIs(
              c_longlong.__ctype_le__.__ctype_be__, c_longlong
          )
  
      s = c_longlong.__ctype_be__(0x1234567890ABCDEF)
      self.assertEqual(
          bin(struct.pack(">q", 0x1234567890ABCDEF)), "1234567890ABCDEF"
      )
      self.assertEqual(bin(s), "1234567890ABCDEF")
      self.assertEqual(s.value, 0x1234567890ABCDEF)
  
      s = c_longlong.__ctype_le__(0x1234567890ABCDEF)
      self.assertEqual(
          bin(struct.pack("<q", 0x1234567890ABCDEF)), "EFCDAB9078563412"
      )
      self.assertEqual(bin(s), "EFCDAB9078563412")
      self.assertEqual(s.value, 0x1234567890ABCDEF)
  
      s = c_ulonglong.__ctype_be__(0x1234567890ABCDEF)
      self.assertEqual(
          bin(struct.pack(">Q", 0x1234567890ABCDEF)), "1234567890ABCDEF"
      )
      self.assertEqual(bin(s), "1234567890ABCDEF")
      self.assertEqual(s.value, 0x1234567890ABCDEF)
  
      s = c_ulonglong.__ctype_le__(0x1234567890ABCDEF)
      self.assertEqual(
          bin(struct.pack("<Q", 0x1234567890ABCDEF)), "EFCDAB9078563412"
      )
      self.assertEqual(bin(s), "EFCDAB9078563412")
      self.assertEqual(s.value, 0x1234567890ABCDEF)
  
file_path: catboost/contrib/tools/python/src/Lib/ctypes/test/test_byteswap.py
imports: import sys, unittest, struct, math, ctypes
  from binascii import hexlify
  from ctypes import *
label_desc: Use image node_id 4 for calling the Test obj's underlying member method code with example usage: obj.test_endian_longlong() without return types