code: def test_emacs_arguments_for_all_commands():
      """
      Test all Emacs commands with Meta-[0-9] arguments (both positive and
      negative). No one should crash.
      """
      for key in ANSI_SEQUENCES:
          # Ignore BracketedPaste. This would hang forever, because it waits for
          # the end sequence.
          if key != "\x1b[200~":
              try:
                  # Note: we add an 'X' after the key, because Ctrl-Q (quoted-insert)
                  # expects something to follow. We add an additional \n, because
                  # Ctrl-R and Ctrl-S (reverse-search) expect that.
                  result, cli = _feed_cli_with_input(
                      "hello\x1b4" + key + "X\n\n"
                  )
  
                  result, cli = _feed_cli_with_input(
                      "hello\x1b-" + key + "X\n\n"
                  )
              except KeyboardInterrupt:
                  # This exception should only be raised for Ctrl-C
                  assert key == "\x03"
  
imports: from __future__ import unicode_literals
  from prompt_toolkit.application import Application
  from prompt_toolkit.buffer import Buffer, AcceptAction
  from prompt_toolkit.clipboard import InMemoryClipboard, ClipboardData
  from prompt_toolkit.enums import DEFAULT_BUFFER, EditingMode
  from prompt_toolkit.eventloop.posix import PosixEventLoop
  from prompt_toolkit.history import InMemoryHistory
  from prompt_toolkit.input import PipeInput
  from prompt_toolkit.interface import CommandLineInterface
  from prompt_toolkit.key_binding.manager import KeyBindingManager
  from prompt_toolkit.output import DummyOutput
  from prompt_toolkit.terminal.vt100_input import ANSI_SEQUENCES
  from functools import partial
  import pytest
label_desc: Use image node_id 13 for calling a global function with example usage: test_emacs_arguments_for_all_commands() without return types