def METHOD_NAME(grouped_accesses, display_offsets, display_time):
    FMT = "{} -- {}us"
    for group_label, accesses in grouped_accesses:
        for offset, time in accesses:
            if display_offsets:
                label = "{} @ {}".format(group_label, offset)
            else:
                label = group_label
            if not display_time:
                print(label)
                continue
            if len(label) <= MAX_LABEL_WIDTH:
                print(FMT.format(label.ljust(MAX_LABEL_WIDTH), time))
            else:
                print(label)
                print(FMT.format("".ljust(MAX_LABEL_WIDTH), time))