code: def test_COMError(self):
      from _ctypes import COMError
  
      if support.HAVE_DOCSTRINGS:
          self.assertEqual(
              COMError.__doc__, "Raised when a COM method call failed."
          )
  
      ex = COMError(-1, "text", ("details",))
      self.assertEqual(ex.hresult, -1)
      self.assertEqual(ex.text, "text")
      self.assertEqual(ex.details, ("details",))
  
imports: from ctypes import *
  from ctypes.test import requires
  import unittest, sys
  from test import test_support
  import _ctypes_test
label_desc: Use image node_id 3 for calling the TestWintypes obj's underlying member method code with example usage: obj.test_COMError() without return types