code: def assert_comparison(code, error_code, positions):
      errors = [
          (error.start_pos, error.code)
          for error in _get_error_list(code)
      ]
      assert [(pos, error_code) for pos in positions] == errors
  
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 2 for calling a global function with example usage: assert_comparison(code, error_code, positions) without return types