code: def test_controlx_controlx():
      # At the end: go to the start of the line.
      result, cli = _feed_cli_with_input("hello world\x18\x18X\r")
      assert result.text == "Xhello world"
      assert result.cursor_position == 1
  
      # At the start: go to the end of the line.
      result, cli = _feed_cli_with_input("hello world\x01\x18\x18X\r")
      assert result.text == "hello worldX"
  
      # Left, Left Control-X Control-X: go to the end of the line.
      result, cli = _feed_cli_with_input(
          "hello world\x1b[D\x1b[D\x18\x18X\r"
      )
      assert result.text == "hello worldX"
  
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 11 for calling a global function with example usage: test_controlx_controlx() without return types