code: def test_endian_int(self):
      if sys.byteorder == "little":
          self.assertIs(c_int.__ctype_le__, c_int)
          self.assertIs(c_int.__ctype_be__.__ctype_le__, c_int)
      else:
          self.assertIs(c_int.__ctype_be__, c_int)
          self.assertIs(c_int.__ctype_le__.__ctype_be__, c_int)
  
      s = c_int.__ctype_be__(0x12345678)
      self.assertEqual(bin(struct.pack(">i", 0x12345678)), "12345678")
      self.assertEqual(bin(s), "12345678")
      self.assertEqual(s.value, 0x12345678)
  
      s = c_int.__ctype_le__(0x12345678)
      self.assertEqual(bin(struct.pack("<i", 0x12345678)), "78563412")
      self.assertEqual(bin(s), "78563412")
      self.assertEqual(s.value, 0x12345678)
  
      s = c_uint.__ctype_be__(0x12345678)
      self.assertEqual(bin(struct.pack(">I", 0x12345678)), "12345678")
      self.assertEqual(bin(s), "12345678")
      self.assertEqual(s.value, 0x12345678)
  
      s = c_uint.__ctype_le__(0x12345678)
      self.assertEqual(bin(struct.pack("<I", 0x12345678)), "78563412")
      self.assertEqual(bin(s), "78563412")
      self.assertEqual(s.value, 0x12345678)
  
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 3 for calling the Test obj's underlying member method code with example usage: obj.test_endian_int() without return types