def test_thresholds_between_min_and_max() -> None:
    """Test if thresholds are between min and max."""
    preds = torch.Tensor([1, 10])
    assert torch.all(thresholds_between_min_and_max(preds, 2) == preds)
Test if thresholds are between min and max.
tests/unit/metrics/test_binning.py