code: def remove_terminal_escapes(text):
      r"""
      Strip out "ANSI" terminal escape sequences, such as those that produce
      colored text on Unix.
  
          >>> print(remove_terminal_escapes(
          ...     "\033[36;44mI'm blue, da ba dee da ba doo...\033[0m"
          ... ))
          I'm blue, da ba dee da ba doo...
      """
      return ANSI_RE.sub("", text)
  
imports: import codecs
  import html
  import re
  import warnings
  import ftfy
  from ftfy.chardata import ALTERED_UTF8_RE, C1_CONTROL_RE, CONTROL_CHARS, DOUBLE_QUOTE_RE, HTML_ENTITIES, HTML_ENTITY_RE, LIGATURES, LOSSY_UTF8_RE, SINGLE_QUOTE_RE, UTF8_DETECTOR_RE, WIDTH_MAP
  from ftfy.badness import is_bad
label_desc: Use image node_id 6 for calling a global function with example usage: remove_terminal_escapes(text) and returns: ANSI_RE