code: def test_split_lines():
      lines = list(split_lines([("class:a", "line1\nline2\nline3")]))
  
      assert lines == [
          [("class:a", "line1")],
          [("class:a", "line2")],
          [("class:a", "line3")],
      ]
  
file_path: catboost/contrib/python/prompt-toolkit/py3/tests/test_formatted_text.py
imports: from __future__ import annotations
  from prompt_toolkit.formatted_text import ANSI, HTML, FormattedText, PygmentsTokens, Template, merge_formatted_text, to_formatted_text
  from prompt_toolkit.formatted_text.utils import split_lines
label_desc: Use image node_id 11 for calling a global function with example usage: test_split_lines() without return types