def check_bad_tree(self, tree, label):
        try:
            parser.sequence2st(tree)
        except parser.ParserError:
            pass
        else:
            self.fail("did not detect invalid tree for %r" % label)
dataset/ETHPy150Open anandology/pyjamas/pgen/test_parser.py/IllegalSyntaxTestCase.check_bad_tree/original