code: def test_invalid(code, grammar):
      with pytest.raises(ParserSyntaxError):
          grammar.parse(code, error_recovery=False)
  
      # It should work with error recovery.
      grammar.parse(code, error_recovery=True)
  
file_path: catboost/contrib/python/parso/py2/tests/test_fstring.py
imports: import pytest
  from textwrap import dedent
  from parso import load_grammar, ParserSyntaxError
  from parso.python.tokenize import tokenize
label_desc: Use image node_id 3 for calling a global function with example usage: test_invalid(code, grammar) without return types