def METHOD_NAME(data, outfilepath, outfilesuffix="summary", verbose=False):
    """
    Writes a dictionary to csv file.
    """
    fieldnames = ["workflow"] + [rmode.name for rmode in ALL_RMODES]
    with open(
        outfilepath + f"-{outfilesuffix}.csv", "w+", newline="", encoding="utf-8"
    ) as ofile:
        writer = csv.writer(ofile, delimiter=",")
        writer.writerow(fieldnames)
        for filepath, signature_data in data.items():
            if signature_data == {}:
                continue
            row = [filepath] + [signature_data[rmode.value] for rmode in ALL_RMODES]
            writer.writerow(row)
            if verbose:
                print(row)