code: def diff_code_assert(a, b, n=4):
      if a != b:
          diff = "\n".join(
              difflib.unified_diff(
                  a.splitlines(), b.splitlines(), n=n, lineterm=""
              )
          )
          assert (
              False
          ), "Code does not match:\n%s\n\ncreated code:\n%s" % (diff, b)
      pass
  
file_path: catboost/contrib/python/parso/py2/tests/test_get_code.py
imports: import difflib
  import pytest
  from parso import parse
label_desc: Use image node_id 1 for calling a global function with example usage: diff_code_assert(a, b, n) without return types