code: def ansi_escape(text: object) -> str:
      """
      Replace characters with a special meaning.
      """
      return str(text).replace("\x1b", "?").replace("\b", "?")
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/formatted_text/ansi.py
imports: from __future__ import annotations
  from string import Formatter
  from typing import Generator
  from prompt_toolkit.output.vt100 import BG_ANSI_COLORS, FG_ANSI_COLORS
  from prompt_toolkit.output.vt100 import _256_colors
  from .base import StyleAndTextTuples
label_desc: Use image node_id 1 for calling a global function with example usage: ansi_escape(text) and returns: str