code: def test_emacs_arguments():
      """
      Test various combinations of arguments in Emacs mode.
      """
      # esc 4
      result, cli = _feed_cli_with_input("\x1b4x\r")
      assert result.text == "xxxx"
  
      # esc 4 4
      result, cli = _feed_cli_with_input("\x1b44x\r")
      assert result.text == "x" * 44
  
      # esc 4 esc 4
      result, cli = _feed_cli_with_input("\x1b4\x1b4x\r")
      assert result.text == "x" * 44
  
      # esc - right (-1 position to the right, equals 1 to the left.)
      result, cli = _feed_cli_with_input("aaaa\x1b-\x1b[Cbbbb\r")
      assert result.text == "aaabbbba"
  
      # esc - 3 right
      result, cli = _feed_cli_with_input("aaaa\x1b-3\x1b[Cbbbb\r")
      assert result.text == "abbbbaaa"
  
      # esc - - - 3 right
      result, cli = _feed_cli_with_input("aaaa\x1b---3\x1b[Cbbbb\r")
      assert result.text == "abbbbaaa"
  
imports: from __future__ import annotations
  from functools import partial
  import pytest
  from prompt_toolkit.clipboard import ClipboardData, InMemoryClipboard
  from prompt_toolkit.enums import EditingMode
  from prompt_toolkit.filters import ViInsertMode
  from prompt_toolkit.history import InMemoryHistory
  from prompt_toolkit.input.defaults import create_pipe_input
  from prompt_toolkit.input.vt100_parser import ANSI_SEQUENCES
  from prompt_toolkit.key_binding.bindings.named_commands import prefix_meta
  from prompt_toolkit.key_binding.key_bindings import KeyBindings
  from prompt_toolkit.output import DummyOutput
  from prompt_toolkit.shortcuts import PromptSession
label_desc: Use image node_id 14 for calling a global function with example usage: test_emacs_arguments() without return types