def colorize(text, color):
    """
    Display text with some ANSI color in the terminal.
    """
    code = f"\033[{color}m"
    restore = "\033[0m"
    return "".join([code, text, restore])

    Display text with some ANSI color in the terminal.
    
structured_prompting/fairseq-version/fairseq/examples/speech_synthesis/preprocessing/denoiser/utils.py