code: def _parse(code, version=None):
      code = dedent(code) + "\n\n"
      grammar = load_grammar(version=version)
      return grammar.parse(code, error_recovery=False)
  
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 1 for calling a global function with example usage: _parse(code, version) and returns: grammar