<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _print_results(results, stat=False, verbose=False):
 """ Prints the results to the stdout :type verbose: bool :param results: generator of results :param stat: if True print stat instead of full output """

    results.generate_pretty_output(stat=stat,
                                   verbose=verbose,
                                   output_function=click.secho)