code: def test_flush_2(processor, stream):
      # Send left key with a 'Flush' in between.
      # The flush should make sure that we process evenything before as-is,
      # with makes the first part just an escape character instead.
      stream.feed("\x1b")
      stream.flush()
      stream.feed("[D")
  
      assert len(processor.keys) == 3
      assert processor.keys[0].key == Keys.Escape
      assert processor.keys[1].key == "["
      assert processor.keys[2].key == "D"
  
      assert processor.keys[0].data == "\x1b"
      assert processor.keys[1].data == "["
      assert processor.keys[2].data == "D"
  
imports: from __future__ import unicode_literals
  from prompt_toolkit.terminal.vt100_input import InputStream
  from prompt_toolkit.keys import Keys
  import pytest
label_desc: Use image node_id 8 for calling a global function with example usage: test_flush_2(processor, stream) without return types