code: def to_plain_text(value: AnyFormattedText) -> str:
      """
      Turn any kind of formatted text back into plain text.
      """
      return fragment_list_to_text(to_formatted_text(value))
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/formatted_text/utils.py
imports: from __future__ import annotations
  from typing import Iterable, cast
  from prompt_toolkit.utils import get_cwidth
  from .base import AnyFormattedText, OneStyleAndTextTuple, StyleAndTextTuples, to_formatted_text
label_desc: Use image node_id 1 for calling a global function with example usage: to_plain_text(value) and returns: fragment_list_to_text