code: def test_methods(self):
      doc = "\ndoc" if TC.__doc__ is not None else ""
      for meth in (
          TC.t1,
          TC.t2,
          TC.t3,
          TC.t4,
          TC.t5,
          TC.t6,
          TC.__call__,
      ):
          with self.subTest(meth=meth):
              self.assertEqual(get_spec(meth), meth.tip + doc)
      self.assertEqual(get_spec(TC.cm), "(a)" + doc)
      self.assertEqual(get_spec(TC.sm), "(b)" + doc)
  
imports: from idlelib import calltip
  import unittest
  from unittest.mock import Mock
  import textwrap
  import types
  import re
  from idlelib.idle_test.mock_tk import Text
  from test.support import MISSING_C_DOCSTRINGS
label_desc: Use image node_id 8 for calling the Get_argspecTest obj's underlying member method code with example usage: obj.test_methods() without return types