def _aggregate_image_preprocessor_config(self) -> PreprocessCfg:
        """Aggregate the image preprocessor configuration for the open_clip model."""

        if self.model_properties.image_preprocessor in [ImagePreprocessor.OpenCLIP, ImagePreprocessor.OpenAI]:
            base_image_preprocess_config = _pcfg()
        elif self.model_properties.image_preprocessor in [ImagePreprocessor.SigLIP]:
            base_image_preprocess_config = _slpcfg()
        elif self.model_properties.image_preprocessor in [ImagePreprocessor.CLIPA]:
            base_image_preprocess_config = _apcfg()
        else:
            raise ValueError(f"Invalid image preprocessor {self.model_properties.image_preprocessor}")

        aggregated_image_preprocess_config = PreprocessCfg(
            **merge_preprocess_dict(
                base_image_preprocess_config, self.model_properties.dict(exclude_none=True)
            )
        )

        return aggregated_image_preprocess_config
Aggregate the image preprocessor configuration for the open_clip model.
src/marqo/inference/native_inference/embedding_models/open_clip_model.py