import itertools


def unroll_labels_names(dstat_labels, aggregation_functions):
    """Build labels for the unrolled example from lables and agg fns"""
    return [label + '_' + fn for label, fn in itertools.product(
        dstat_labels, aggregation_functions)]