code: def test_get_continuation_type(self):
      eq = self.assertEqual
      p = self.parser
      setcode = p.set_code
      gettype = p.get_continuation_type
  
      (NONE, BACKSLASH, FIRST, NEXT, BRACKET) = range(5)
      TestInfo = namedtuple("TestInfo", ["string", "continuation"])
      tests = (
          TestInfo("", NONE),
          TestInfo('"""This is a continuation docstring.\n', FIRST),
          TestInfo(
              "'''This is a multiline-continued docstring.\n\n", NEXT
          ),
          TestInfo("a = (1 + 2) - 5 *\\\n", BACKSLASH),
          TestInfo("\n   def function1(self, a,\\\n", BRACKET),
      )
  
      for test in tests:
          with self.subTest(string=test.string):
              setcode(test.string)
              eq(gettype(), test.continuation)
  
imports: from idlelib import pyparse
  import unittest
  from collections import namedtuple
label_desc: Use image node_id 8 for calling the PyParseTest obj's underlying member method code with example usage: obj.test_get_continuation_type() without return types