code: def document():
      return Document(
          "line 1\n" + "line 2\n" + "line 3\n" + "line 4\n",
          len("line 1\n" + "lin"),
      )
  
file_path: catboost/contrib/python/prompt-toolkit/py2/tests/test_document.py
imports: from __future__ import unicode_literals
  import pytest
  from prompt_toolkit.document import Document
label_desc: Use image node_id 1 for calling a global function with example usage: document() and returns: Document