code: def test___set__(self):
      class MyCStruct(Structure):
          _fields_ = (("field", c_int),)
  
      self.assertRaises(
          TypeError, MyCStruct.field.__set__, "wrong type self", 42
      )
  
      class MyCUnion(Union):
          _fields_ = (("field", c_int),)
  
      self.assertRaises(
          TypeError, MyCUnion.field.__set__, "wrong type self", 42
      )
  
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 11 for calling the StructFieldsTestCase obj's underlying member method code with example usage: obj.test___set__() without return types