def _content_preprocessing(self) -> List[MultilingualCLIPPreprocessedContent]:
        """
        Preprocess the content based on the modality.

        Returns:
            List[OpenCLIPPreprocessedContent]: The preprocessed content.
        """
        if self.inference_request.modality == Modality.TEXT:
            results = split_prefix_preprocess_text(
                self.inference_request.contents,
                self.model.get_preprocessor(),
                self.inference_request.preprocessing_config
            )
        elif self.inference_request.modality == Modality.IMAGE:
            results = download_and_preprocess_media(self.inference_request.contents, self.model.get_preprocessor(),
                                                    self.inference_request.preprocessing_config,
                                                    self.inference_request.return_individual_error)
        else:
            # TODO - Raise an unsupported modality error
            raise ValueError(f"Unsupported modality: {modality}")
        return results

        Preprocess the content based on the modality.

        Returns:
            List[OpenCLIPPreprocessedContent]: The preprocessed content.
        
src/marqo/inference/native_inference/inference_pipeline/multilingual_inference_pipeline.py