Split the function _inverse_label_binarize into two functions one for the multiclass case called _best_labels and one for other cases which use thresholding called _labels_above_threshold