def test_validate_image_adds_time_dimension(self) -> None:
        """Test validation of an image batch without time dimension."""
        # Create a 4D image batch without time dimension
        input_batch = np.zeros((2, 224, 224, 3))

        # Validate the image batch
        validated_batch = self.validator.validate_image(input_batch)
        # Check if time dimension is added
        assert validated_batch.shape == (2, 224, 224, 3), "Time dimension should not be added for batch input"
        # Ensure the dtype is converted to float32
        assert validated_batch.dtype == np.float32, "Image batch should be converted to float32"
        # Verify that the image content is preserved
        assert pytest.approx(validated_batch) == input_batch.astype(np.float32), "Image content should be preserved"
Test validation of an image batch without time dimension.
tests/unit/data/validators/numpy/test_video.py