code: def test_left_recursion():
      with pytest.raises(ValueError, match="left recursion"):
          generate_grammar("foo: foo NAME\n", tokenize.PythonTokenTypes)
  
imports: from textwrap import dedent
  import pytest
  from parso import load_grammar
  from parso import ParserSyntaxError
  from parso.pgen2 import generate_grammar
  from parso.python import tokenize
label_desc: Use image node_id 50 for calling a global function with example usage: test_left_recursion() without return types