code: def test_named_lookahead_error(self) -> None:
      grammar = """
          start: foo=!'x' NAME
          """
      with self.assertRaises(SyntaxError):
          make_parser(grammar)
  
imports: import ast
  import difflib
  import io
  import textwrap
  import unittest
  from test import test_tools
  from typing import Dict, Any
  from tokenize import TokenInfo, NAME, NEWLINE, NUMBER, OP
label_desc: Use image node_id 22 for calling the TestPegen obj's underlying member method code with example usage: obj.test_named_lookahead_error() without return types