def colorize(value: str, is_warning: bool) -> str:
    """
    Utility to set a color for the output string when it exceeds the threshold.

    Args:
        value: String to be output.
        is_warning: Whether it exceeds the threshold.

    Returns:
        colorized string output
    """
    if is_warning:
        return termcolors.make_style(fg=get_config()["PRINT_THRESHOLDS"]["COLOR"])(  # type: ignore
            value
        )
    return value