code: def test_struct_fields_unsupported_byte_order(self):
      fields = [
          ("a", c_ubyte),
          ("b", c_byte),
          ("c", c_short),
          ("d", c_ushort),
          ("e", c_int),
          ("f", c_uint),
          ("g", c_long),
          ("h", c_ulong),
          ("i", c_longlong),
          ("k", c_ulonglong),
          ("l", c_float),
          ("m", c_double),
          ("n", c_char),
          ("b1", c_byte, 3),
          ("b2", c_byte, 3),
          ("b3", c_byte, 2),
          ("a", c_int * 3 * 3 * 3),
      ]
  
      # these fields do not support different byte order:
      for typ in c_wchar, c_void_p, POINTER(c_int):
          with self.assertRaises(TypeError):
  
              class T(
                  BigEndianStructure
                  if sys.byteorder == "little"
                  else LittleEndianStructure
              ):
                  _fields_ = fields + [("x", typ)]
  
imports: import binascii
  import ctypes
  import math
  import struct
  import sys
  import unittest
  from ctypes import Structure, Union, LittleEndianUnion, BigEndianUnion, BigEndianStructure, LittleEndianStructure, POINTER, sizeof, cast, c_byte, c_ubyte, c_char, c_wchar, c_void_p, c_short, c_ushort, c_int, c_uint, c_long, c_ulong, c_longlong, c_ulonglong, c_uint32, c_float, c_double
label_desc: Use image node_id 8 for calling the Test obj's underlying member method code with example usage: obj.test_struct_fields_unsupported_byte_order() without return types