code: def test_rule_with_simple_collision(self) -> None:
      grammar_source = """
          start: bad_rule
          sum:
              | NAME '+' NAME
              | NAME '+' NAME ';'
          """
      grammar: Grammar = parse_string(grammar_source, GrammarParser)
      validator = SubRuleValidator(grammar)
      with self.assertRaises(ValidationError):
          for rule_name, rule in grammar.rules.items():
              validator.validate_rule(rule_name, rule)
  
imports: import unittest
  from test import test_tools
label_desc: Use image node_id 2 for calling the TestPegen obj's underlying member method code with example usage: obj.test_rule_with_simple_collision() without return types