def METHOD_NAME(source):
    """
    Remove ansi escape codes from text.
    Parameters
    ----------
    source : str
        Source to remove the ansi from
    """
    return re.sub(r'\033\[(\d|;)+?m', '', source)