code: def test_common_prefix(processor, handlers):
      # Sending Control_X should not yet do anything, because there is
      # another sequence starting with that as well.
      processor.feed(KeyPress(Keys.ControlX, ""))
      processor.process_keys()
  
      assert handlers.called == []
  
      # When another key is pressed, we know that we did not meant the longer
      # "ControlX ControlC" sequence and the callbacks are called.
      processor.feed(KeyPress(Keys.ControlD, ""))
      processor.process_keys()
  
      assert handlers.called == ["control_x", "control_d"]
  
file_path: catboost/contrib/python/prompt-toolkit/py2/tests/test_key_binding.py
imports: from __future__ import unicode_literals
  from prompt_toolkit.key_binding.input_processor import InputProcessor, KeyPress
  from prompt_toolkit.key_binding.registry import Registry
  from prompt_toolkit.keys import Keys
  import pytest
label_desc: Use image node_id 7 for calling a global function with example usage: test_common_prefix(processor, handlers) without return types