def METHOD_NAME(output):
    with ProvenanceReader() as db:
        for data in db.run_query("select * from redundancy_by_core"):
            (_, _, _, source, _, filtered, invalid, _,
             redundant, total, percent) = data
            output.write(f"\ncore {source} \n")
            output.write(f"    {total} packets received.\n")
            output.write(
                f"    {redundant} were detected as redundant packets by the "
                "bitfield filter.\n")
            output.write(
                f"    {filtered} were detected as having no targets "
                "after the DMA stage.\n")
            output.write(
                f"    {invalid} were detected as packets which "
                "we should not have received in the first place.\n")
            output.write(
                "    Overall this makes a redundant percentage of "
                f"{percent}\n")
        data = db.run_query("select * from redundancy_summary")
        (sum_total, max_total, min_total, avg_total,
            sum_reduant, max_redundant, min_redundant, avg_redundant,
            max_percent, min_percent, avg_percent, global_percent) = data[0]
    output.write(f"\nThe total packets flown in system was {sum_total}.\n")
    output.write(f"    The max, min and avergae per core was {max_total}, "
                 f"{min_total}, {avg_total} packets.\n")
    output.write(f"The total redundant packets was {sum_reduant}.\n")
    output.write("    The max, min and avergae per core was "
                 f"{max_redundant}, {min_redundant}, {avg_redundant} "
                 "packets.\n")
    output.write(
        f"The percentages of redundant packets was {global_percent}.\n")
    output.write("    The max and min percentages of redundant "
                 f"packets are {max_percent} and {min_percent}.\n")
    output.write(
        "    The average redundant percentages from each "
        f"core were {avg_percent} accordingly.\n")