code: def _get_error_list(code, version=None):
      grammar = parso.load_grammar(version=version)
      tree = grammar.parse(code)
      return list(grammar.iter_errors(tree))
  
imports: import sys
  import warnings
  import pytest
  import parso
  from textwrap import dedent
  from parso._compatibility import is_pypy
  from .failing_examples import FAILING_EXAMPLES, indent, build_nested
label_desc: Use image node_id 1 for calling a global function with example usage: _get_error_list(code, version) and returns: list