code: def test_get_base_indent_string(self):
      eq = self.assertEqual
      p = self.parser
      setcode = p.set_code
      baseindent = p.get_base_indent_string
  
      TestInfo = namedtuple("TestInfo", ["string", "indent"])
      tests = (
          TestInfo("", ""),
          TestInfo("def a():\n", ""),
          TestInfo("\tdef a():\n", "\t"),
          TestInfo("    def a():\n", "    "),
          TestInfo("    def a(\n", "    "),
          TestInfo("\t\n    def a(\n", "    "),
          TestInfo("\t\n    # Comment.\n", "    "),
      )
  
      for test in tests:
          with self.subTest(string=test.string):
              setcode(test.string)
              eq(baseindent(), test.indent)
  
imports: from idlelib import pyparse
  import unittest
  from collections import namedtuple
label_desc: Use image node_id 13 for calling the PyParseTest obj's underlying member method code with example usage: obj.test_get_base_indent_string() without return types