COSMIT simplify unique_labels in sklearn.metrics