code: def test_is_block_closer(self):
      yes = self.assertTrue
      no = self.assertFalse
      p = self.parser
      setcode = p.set_code
      closer = p.is_block_closer
  
      TestInfo = namedtuple("TestInfo", ["string", "assert_"])
      tests = (
          TestInfo("return\n", yes),
          TestInfo("\tbreak\n", yes),
          TestInfo("  continue\n", yes),
          TestInfo("     raise\n", yes),
          TestInfo("pass    \n", yes),
          TestInfo("pass\t\n", yes),
          TestInfo("return #\n", yes),
          TestInfo("raised\n", no),
          TestInfo("returning\n", no),
          TestInfo("# return\n", no),
          TestInfo('"""break\n', no),
          TestInfo('"continue\n', no),
          TestInfo("def function1(self, a):\n    pass\n", yes),
      )
  
      for test in tests:
          with self.subTest(string=test.string):
              setcode(test.string)
              test.assert_(closer())
  
imports: from idlelib import pyparse
  import unittest
  from collections import namedtuple
label_desc: Use image node_id 15 for calling the PyParseTest obj's underlying member method code with example usage: obj.test_is_block_closer() without return types