def METHOD_NAME(self, identifier, prediction):
    if self.argmax_output:
        single_prediction = ArgMaxClassificationPrediction(identifier, prediction)
    elif self.fixed_output:
        single_prediction = ArgMaxClassificationPrediction(identifier,
                                                           prediction[:, self.fixed_output_index])
    else:
        if self.do_softmax:
            prediction = softmax(prediction)
        single_prediction = ClassificationPrediction(
            identifier, prediction, self.label_as_array,
            multilabel_threshold=self.multilabel_thresh)
    return single_prediction