def printer(text, color=None, **kwargs):
if nocolor:<EOL><INDENT>print(text, **kwargs)<EOL><DEDENT>else:<EOL><INDENT>if color is None:<EOL><INDENT>cprint(text, **kwargs)<EOL><DEDENT>else:<EOL><INDENT>cprint(text, color, **kwargs)<EOL><DEDENT><DEDENT>
Prints using color or standard print() depending on the value
    of 'nocolor'.