def test_initialization() -> None:
    """Test if the metric initializes with correct default values."""
    metric = _MinMax()
    assert torch.isinf(metric.min), "Initial min should be positive infinity."
    assert metric.min > 0, "Initial min should be positive infinity."
    assert torch.isinf(metric.max), "Initial max should be negative infinity."
    assert metric.max < 0, "Initial max should be negative infinity."
Test if the metric initializes with correct default values.
tests/unit/metrics/test_min_max.py