def distributions_list(distributions, categories): ####### Make a class #########
    """
    Map the categories to the fraction of the dataset for each worker subset.

    Parameters
    ----------
    distributions: list of lists
        The list of the distributions for each categories for each worker.

    categories: list of str
        The list of all categories present in the dataset folder.

    Returns
    -------

    distribs: list of tuples
        The list of categories and subset fraction pairs for each worker.
    """
    distribs = []
    for farm_distrib in distributions:
        distribs.append(dict(zip(categories, farm_distrib)))
    return distribs