code: def test_print_formatted_text():
      f = _Capture()
      pt_print([("", "hello"), ("", "world")], file=f)
      assert "hello" in f.data
      assert "world" in f.data
  
file_path: catboost/contrib/python/prompt-toolkit/py3/tests/test_print_formatted_text.py
imports: from __future__ import annotations
  import pytest
  from prompt_toolkit import print_formatted_text
  from prompt_toolkit.formatted_text import HTML, FormattedText, to_formatted_text
  from prompt_toolkit.output import ColorDepth
  from prompt_toolkit.styles import Style
  from prompt_toolkit.utils import is_windows
label_desc: Use image node_id 1 for calling a global function with example usage: test_print_formatted_text() without return types