def METHOD_NAME(self, model: BaseModel, dataset: Dataset):
    if not model.is_classification:
        raise ValueError("Underconfidence detector only works for classification models.")
    return super().METHOD_NAME(model, dataset)