code: def test_create_unicode_buffer_non_bmp(self):
      expected = 5 if sizeof(c_wchar) == 2 else 3
      for s in "\U00010000\U00100000", "\U00010000\U0010ffff":
          b = create_unicode_buffer(s)
          self.assertEqual(len(b), expected)
          self.assertEqual(b[-1], "\0")
  
file_path: cpython/Lib/test/test_ctypes/test_buffers.py
imports: import unittest
  from ctypes import create_string_buffer, create_unicode_buffer, sizeof, c_char, c_wchar
label_desc: Use image node_id 5 for calling the StringBufferTestCase obj's underlying member method code with example usage: obj.test_create_unicode_buffer_non_bmp() without return types