code: def test_gh99275(self):
      class BrokenStructure(Structure):
          def __init_subclass__(cls, **kwargs):
              cls._fields_ = (
                  []
              )  # This line will fail, `stgdict` is not ready
  
      with self.assertRaisesRegex(
          TypeError, "ctypes state is not initialized"
      ):
  
          class Subclass(BrokenStructure):
              ...
  
file_path: cpython/Lib/test/test_ctypes/test_struct_fields.py
imports: import unittest
  from ctypes import Structure, Union, sizeof, c_char, c_int
  from ._support import CField, Py_TPFLAGS_DISALLOW_INSTANTIATION, Py_TPFLAGS_IMMUTABLETYPE
label_desc: Use image node_id 10 for calling the StructFieldsTestCase obj's underlying member method code with example usage: obj.test_gh99275() without return types