<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def colorize(text, color):
 """ Colorizes given text using given color. :param text: Text to colorize. :type text: unicode :param color: *ANSI* escape code name. :type color: unicode :return: Colorized text. :rtype: unicode """


    escape_code = getattr(AnsiEscapeCodes, color, None)
    if escape_code is None:
        raise foundations.exceptions.AnsiEscapeCodeExistsError(
            "'{0}' | '{1}' 'ANSI' escape code name doesn't exists!".format(
                inspect.getmodulename(__file__), color))

    return "{0}{1}{2}".format(escape_code, text, AnsiEscapeCodes.reset)