def unique_label(train_dataset):
    """ Calculate the number of unique labels in the training dataset

    Return the set of unique labels and the size
    """
    label = set(unique for unique, _ in train_dataset)
    return label, len(label)