<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def anchore_print(msg, do_formatting=False):
 """ Print to stdout using the proper formatting for the command. :param msg: output to be printed, either an object or a string. Objects will be serialized according to config :return: """

    if do_formatting:
        click.echo(formatter(msg))
    else:
        click.echo(msg)