<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def output_colored(code, text, is_bold=False):
 """ Create function to output with color sequence """

    if is_bold:
        code = '1;%s' % code

    return '\033[%sm%s\033[0m' % (code, text)