code: def _remove_ansi_escape_sequences(text):
      return _ANSI_ESCAPE_SEQ.sub("", text)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import re
  from contextlib import contextmanager
  import py
  import six
  import pytest
  from _pytest.compat import dummy_context_manager
  from _pytest.config import create_terminal_writer
  from _pytest.pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: _remove_ansi_escape_sequences(text) and returns: _ANSI_ESCAPE_SEQ