def METHOD_NAME(column_widths=None, field_format=None, template="column"):
    out_buffer = ProfilePrinter(column_widths, field_format, template)
    try:
        yield out_buffer
    finally:
        out_buffer.print()