human
I wrote the below code

    def _binary_roc_auc_score(y_true, y_score, sample_weight=None):
        if (len(np.unique(y_true)) != 2):
            raise ValueError('Only    one    class    present    in    y_true.    ROC    AUC    score    is    not    defined    in    that    case.')
        (fpr, tpr, tresholds) = roc_curve(y_true, y_score, sample_weight=sample_weight)
        return auc(fpr, tpr, reorder=True)
    return _average_binary_score(_binary_roc_auc_score, y_true, y_score, average, sample_weight=sample_weight)

What's a good function header?

=====
Here's a good function header?
assistant
#Here's a good function header.

def roc_auc_score(y_true, y_score, average='macro', sample_weight=None):