code: def test_arrows(processor, stream):
      stream.feed("\x1b[A\x1b[B\x1b[C\x1b[D")
  
      assert len(processor.keys) == 4
      assert processor.keys[0].key == Keys.Up
      assert processor.keys[1].key == Keys.Down
      assert processor.keys[2].key == Keys.Right
      assert processor.keys[3].key == Keys.Left
      assert processor.keys[0].data == "\x1b[A"
      assert processor.keys[1].data == "\x1b[B"
      assert processor.keys[2].data == "\x1b[C"
      assert processor.keys[3].data == "\x1b[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 4 for calling a global function with example usage: test_arrows(processor, stream) without return types