code: def test_syntax_error(self, fs_env):
      # The trailing .*? is for PyPy 2 and 3, which don't seem to
      # clear the exception's original traceback, leaving the syntax
      # error in the middle of other compiler frames.
      self.assert_traceback_matches(
          lambda: fs_env.get_template("syntaxerror.html"),
          """(?sm)
    File ".*?syntaxerror.html", line 4, in (template|<module>)
      \\{% endif %\\}.*?
  (jinja2\\.exceptions\\.)?TemplateSyntaxError: Encountered unknown tag 'endif'. Jinja \
  was looking for the following tags: 'endfor' or 'else'. The innermost block that needs \
  to be closed is 'for'.
      """,
      )
  
file_path: catboost/contrib/python/Jinja2/py3/tests/test_debug.py
imports: import pickle
  import re
  from traceback import format_exception
  import pytest
  from jinja2 import ChoiceLoader
  from jinja2 import DictLoader
  from jinja2 import Environment
  from jinja2 import TemplateSyntaxError
label_desc: Use image node_id 3 for calling the TestDebug obj's underlying member method code with example usage: obj.test_syntax_error(fs_env) without return types