def create_labels(sizes):
    """create labels starting at 0 with specified sizes

    sizes must be a tuple
    """

    labels = []
    for i, size in enumerate(sizes):
        labels += size*[i]
    return(labels)