code: def _is_syntax_error(err1, err2):
      rep1 = repr(err1)
      rep2 = repr(err2)
      if "was never closed" in rep1 and "was never closed" in rep2:
          return False
      if rep1 == rep2:
          return True
      return False
  
file_path: catboost/contrib/tools/python3/src/Lib/codeop.py
imports: import __future__
  import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: _is_syntax_error(err1, err2) and returns: False, False, True