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.
examples/speech_synthesis/preprocessing/denoiser/utils.py