code: def test_endian_double(self):
      if sys.byteorder == "little":
          self.assertIs(c_double.__ctype_le__, c_double)
          self.assertIs(c_double.__ctype_be__.__ctype_le__, c_double)
      else:
          self.assertIs(c_double.__ctype_be__, c_double)
          self.assertIs(c_double.__ctype_le__.__ctype_be__, c_double)
      s = c_double(math.pi)
      self.assertEqual(s.value, math.pi)
      self.assertEqual(bin(struct.pack("d", math.pi)), bin(s))
      s = c_double.__ctype_le__(math.pi)
      self.assertEqual(s.value, math.pi)
      self.assertEqual(bin(struct.pack("<d", math.pi)), bin(s))
      s = c_double.__ctype_be__(math.pi)
      self.assertEqual(s.value, math.pi)
      self.assertEqual(bin(struct.pack(">d", math.pi)), bin(s))
  
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 6 for calling the Test obj's underlying member method code with example usage: obj.test_endian_double() without return types