code: def test_carriage_return_at_end(code, types):
      """
      By adding an artificial newline this created weird side effects for
      \r at the end of files.
      """
      tree = parse(code)
      assert tree.get_code() == code
      assert [c.type for c in tree.children] == types
      assert tree.end_pos == (len(code) + 1, 0)
  
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 6 for calling a global function with example usage: test_carriage_return_at_end(code, types) without return types