def METHOD_NAME(y: np.ndarray, y_pred: np.ndarray) -> float:
    """Compute area under precision-recall curve
    Parameters
    ----------
    y: np.ndarray
        A numpy array of shape `(N, n_classes)` or `(N,)` with true labels
    y_pred: np.ndarray
        Of shape `(N, n_classes)` with class probabilities.
    Returns
    -------
    float
        The area under the precision-recall curve. A number between 0 and 1.
    """
    precision, recall, _ = precision_recall_curve(y[:, 1], y_pred[:, 1])
    return auc(recall, precision)