def test_validate_image_invalid_dimensions(self) -> None:
        """Test validation of a video batch with invalid dimensions."""
        with pytest.raises(
            ValueError,
            match=(
                r"Video batch must have 4 dimensions \(B, C, H, W\) for single frame images or "
                r"5 dimensions \(B, T, C, H, W\) for multi-frame videos, got 2."
            ),
        ):
            self.validator.validate_image(torch.rand(224, 224))
Test validation of a video batch with invalid dimensions.
tests/unit/data/validators/torch/test_video.py