code: def test_embedded_null(self):
      class TestStruct(ctypes.Structure):
          _fields_ = [("unicode", ctypes.c_wchar_p)]
  
      t = TestStruct()
      # This would raise a ValueError:
      t.unicode = "foo\0bar\0\0"
  
file_path: cpython/Lib/test/test_ctypes/test_unicode.py
imports: import _ctypes_test
  import ctypes
  import unittest
label_desc: Use image node_id 3 for calling the UnicodeTestCase obj's underlying member method code with example usage: obj.test_embedded_null() without return types