code: def _invalid_syntax(code, version=None, **kwargs):
      with pytest.raises(ParserSyntaxError):
          module = _parse(code, version=version, **kwargs)
          # For debugging
          print(module.children)
  
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 2 for calling a global function with example usage: _invalid_syntax(code, version) without return types