def test_invalid_patch_method(self):
        """Test that an invalid patch_method value raises ValidationError."""
        with self.assertRaises(ValidationError) as context:
            ImagePreprocessingConfig(
                should_chunk=True,
                patch_method="invalid_method"
            )
        self.assertIn("unexpected value; permitted: ", str(context.exception))
Test that an invalid patch_method value raises ValidationError.
tests/unit_tests/marqo/core/inference/api/test_preprocessing_config.py