code: def test_pygments_tokens():
      text = [
          (("A", "B"), "hello"),  # Token.A.B
          (("C", "D", "E"), "hello"),  # Token.C.D.E
          ((), "world"),  # Token
      ]
  
      assert to_formatted_text(PygmentsTokens(text)) == [
          ("class:pygments.a.b", "hello"),
          ("class:pygments.c.d.e", "hello"),
          ("class:pygments", "world"),
      ]
  
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 10 for calling a global function with example usage: test_pygments_tokens() without return types