code: def test_text_before_cursor(document):
      assert document.text_before_cursor == "line 1\nlin"
  
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 3 for calling a global function with example usage: test_text_before_cursor(document) without return types