code: def merge_formatted_text(
      items: Iterable[AnyFormattedText],
  ) -> AnyFormattedText:
      """
      Merge (Concatenate) several pieces of formatted text together.
      """
  
      def _merge_formatted_text() -> AnyFormattedText:
          result = FormattedText()
          for i in items:
              result.extend(to_formatted_text(i))
          return result
  
      return _merge_formatted_text
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/formatted_text/base.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, Callable, Iterable, List, Tuple, Union, cast
  from prompt_toolkit.mouse_events import MouseEvent
label_desc: Use image node_id 3 for calling a global function with example usage: merge_formatted_text(items) and returns: _merge_formatted_text, result