code: def test_normalizer_issue(normalizer_issue_case):
      def sort(issues):
          issues = sorted(issues, key=lambda i: (i.start_pos, i.code))
          return [
              "(%s, %s): %s" % (i.start_pos[0], i.start_pos[1], i.code)
              for i in issues
          ]
  
      with open(normalizer_issue_case.path, "rb") as f:
          code = python_bytes_to_unicode(f.read())
  
      desired = sort(collect_errors(code))
  
      grammar = parso.load_grammar(
          version=normalizer_issue_case.python_version
      )
      module = grammar.parse(code)
      issues = grammar._get_normalizer_issues(module)
      actual = sort(issues)
  
      diff = "\n".join(difflib.ndiff(desired, actual))
      # To make the pytest -v diff a bit prettier, stop pytest to rewrite assert
      # statements by executing the comparison earlier.
      _bool = desired == actual
      assert _bool, "\n" + diff
  
file_path: catboost/contrib/python/parso/py3/tests/test_normalizer_issues_files.py
imports: import difflib
  import re
  from functools import total_ordering
  from typing import Iterator, Tuple
  import parso
  from parso.utils import python_bytes_to_unicode
label_desc: Use image node_id 2 for calling a global function with example usage: test_normalizer_issue(normalizer_issue_case) and returns: unknown