code: def test_split_lines_3():
      "Edge cases: inputs ending with newlines."
      # -1-
      lines = list(split_lines([(Token.A, "line1\nline2\n")]))
  
      assert lines == [
          [(Token.A, "line1")],
          [(Token.A, "line2")],
          [(Token.A, "")],
      ]
  
      # -2-
      lines = list(
          split_lines(
              [
                  (Token.A, "\n"),
              ]
          )
      )
  
      assert lines == [
          [],
          [(Token.A, "")],
      ]
  
      # -3-
      lines = list(
          split_lines(
              [
                  (Token.A, ""),
              ]
          )
      )
  
      assert lines == [
          [(Token.A, "")],
      ]
  
imports: from __future__ import unicode_literals
  from prompt_toolkit.layout.utils import split_lines
  from prompt_toolkit.token import Token
label_desc: Use image node_id 3 for calling a global function with example usage: test_split_lines_3() without return types