code: def test_is_cursor_at_the_end(document):
      assert Document("hello", 5).is_cursor_at_the_end
      assert not Document("hello", 4).is_cursor_at_the_end
  
file_path: catboost/contrib/python/prompt-toolkit/py3/tests/test_document.py
imports: from __future__ import annotations
  import pytest
  from prompt_toolkit.document import Document
label_desc: Use image node_id 12 for calling a global function with example usage: test_is_cursor_at_the_end(document) without return types