code: def test_empty_history():
      buf = Buffer()
      buf.yank_last_arg()
      assert buf.document.current_line == ""
  
file_path: catboost/contrib/python/prompt-toolkit/py3/tests/test_yank_nth_arg.py
imports: from __future__ import annotations
  import pytest
  from prompt_toolkit.buffer import Buffer
  from prompt_toolkit.history import InMemoryHistory
label_desc: Use image node_id 2 for calling a global function with example usage: test_empty_history() without return types