code: def _strip_invisible(s):
      "Remove invisible ANSI color codes."
      if isinstance(s, _text_type):
          return re.sub(_invisible_codes, "", s)
      else:  # a bytestring
          return re.sub(_invisible_codes_bytes, "", s)
  
imports: from __future__ import print_function
  from __future__ import unicode_literals
  from collections import namedtuple
  from platform import python_version_tuple
  import re
label_desc: Use image node_id 14 for calling a global function with example usage: _strip_invisible(s) and returns: re, re