def test_thresholds_between_0_and_1() -> None:
    """Test if thresholds are between 0 and 1."""
    expected = torch.Tensor([0, 1])
    assert torch.all(thresholds_between_0_and_1(2) == expected)
Test if thresholds are between 0 and 1.
tests/unit/metrics/test_binning.py