<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def stylize(text, styles, reset=True):
 """conveniently styles your text as and resets ANSI codes at its end."""

    terminator = attr("reset") if reset else ""
    return "{}{}{}".format("".join(styles), text, terminator)