code: def test_cw_strings(self):
      from ctypes import byref, c_wchar_p
  
      s = "123"
      if sys.platform == "win32":
          self.assertTrue(c_wchar_p.from_param(s)._obj is s)
          self.assertRaises(TypeError, c_wchar_p.from_param, 42)
  
          # new in 0.9.1: convert (decode) ascii to unicode
          self.assertEqual(c_wchar_p.from_param("123")._obj, "123")
      self.assertRaises(
          UnicodeDecodeError, c_wchar_p.from_param, "123\377"
      )
  
      pa = c_wchar_p.from_param(c_wchar_p("123"))
      self.assertEqual(type(pa), c_wchar_p)
  
file_path: catboost/contrib/tools/python/src/Lib/ctypes/test/test_parameters.py
imports: import unittest, sys
  from ctypes.test import need_symbol
  import test.support
label_desc: Use image node_id 6 for calling the SimpleTypesTestCase obj's underlying member method code with example usage: obj.test_cw_strings() without return types