import csv
from typing import Dict


def write_to_csv(struct_tuple_distance : Dict) -> None:
    """
    Take in dict of {(struct1_string, struct2_string) : float} and store to csv file

    Arg:
        Dict{Tuple[string, string] : float}

    Return:
        None, just store to a csv file
    """
    with open('wasserstein_distances_1d.csv', 'w') as wd_file:
        writer = csv.writer(wd_file)
        for key, value in struct_tuple_distance.items():
            writer.writerow([key, value])
    return None