def _colorize(val, color):
if termcolor is not None:<EOL><INDENT>val = termcolor.colored(val, color)<EOL><DEDENT>elif colorama is not None:<EOL><INDENT>val = TERMCOLOR2COLORAMA[color] + val + colorama.Style.RESET_ALL<EOL><DEDENT>return val<EOL>
Colorize a string using termcolor or colorama.

    If any of them are available.