def test__binclf_one_curve(
    pred: torch.Tensor,
    gt: torch.Tensor,
    thresholds: torch.Tensor,
    expected: torch.Tensor,
) -> None:
    """Test if `_binclf_one_curve()` returns the expected values."""
    computed = _binary_classification_curve(pred, gt, thresholds)
    assert computed.shape == (thresholds.numel(), 2, 2)
    assert (computed == expected.numpy()).all()
Test if `_binclf_one_curve()` returns the expected values.
tests/unit/metrics/pimo/test_binary_classification_curve.py