code: def test_emacs_other_bindings():
      # Transpose characters.
      result, cli = _feed_cli_with_input("abcde\x14X\r")  # Ctrl-T
      assert result.text == "abcedX"
  
      # Left, Left, Transpose. (This is slightly different.)
      result, cli = _feed_cli_with_input("abcde\x1b[D\x1b[D\x14X\r")
      assert result.text == "abdcXe"
  
      # Clear before cursor.
      result, cli = _feed_cli_with_input("hello\x1b[D\x1b[D\x15X\r")
      assert result.text == "Xlo"
  
      # unix-word-rubout: delete word before the cursor.
      # (ControlW).
      result, cli = _feed_cli_with_input("hello world test\x17X\r")
      assert result.text == "hello world X"
  
      result, cli = _feed_cli_with_input(
          "hello world /some/very/long/path\x17X\r"
      )
      assert result.text == "hello world X"
  
      # (with argument.)
      result, cli = _feed_cli_with_input("hello world test\x1b2\x17X\r")
      assert result.text == "hello X"
  
      result, cli = _feed_cli_with_input(
          "hello world /some/very/long/path\x1b2\x17X\r"
      )
      assert result.text == "hello X"
  
      # backward-kill-word: delete word before the cursor.
      # (Esc-ControlH).
      result, cli = _feed_cli_with_input(
          "hello world /some/very/long/path\x1b\x08X\r"
      )
      assert result.text == "hello world /some/very/long/X"
  
      # (with arguments.)
      result, cli = _feed_cli_with_input(
          "hello world /some/very/long/path\x1b3\x1b\x08X\r"
      )
      assert result.text == "hello world /some/very/X"
  
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 10 for calling a global function with example usage: test_emacs_other_bindings() without return types