def test_missing_patch_method_with_chunking(self):
        """Test that missing patch_method raises ValidationError when should_chunk is True."""
        with self.assertRaises(ValidationError) as context:
            ImagePreprocessingConfig(
                should_chunk=True
                # patch_method is not provided
            )
        self.assertIn("`patch_method` must be provided when `should_chunk` is True", str(context.exception))
Test that missing patch_method raises ValidationError when should_chunk is True.
tests/unit_tests/marqo/core/inference/api/test_preprocessing_config.py