def merge_dicts(dictionaries):
    """
    merges all the dictionaries in a list into one.
    :param dictionaries:
    :return:
    """
    result = {}
    for dictionary in dictionaries:
        result.update(dictionary)
    return result