code: def test_simple_search_with_arg(_history):
      buff = Buffer(history=_history)
      buff.yank_last_arg(n=2)
      assert buff.document.current_line == "three"
  
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 5 for calling a global function with example usage: test_simple_search_with_arg(_history) without return types