def METHOD_NAME(self, dataset_and_label_name):
    dataset, label_name = dataset_and_label_name
    data = Data(data=dataset, label_name=label_name)
    label_feature = dataset.features[label_name]
    if isinstance(label_feature, ClassLabel):
        classes = label_feature.names
    else:
        classes = sorted(dataset.unique(label_name))
    assert data.class_names == classes