def test_content_preprocessing_non_text_modalities(self, mock_split_preprocess):
        """Ensure that the content preprocessing is done correctly for non-text modalities."""
        for modality in [Modality.IMAGE, Modality.AUDIO, Modality.VIDEO]:
            with self.subTest(modality=modality):
                inference_request = InferenceRequest(
                    contents=["this is a test"],
                    modality=Modality.TEXT,
                    model_config=self.mock_model_config,
                    preprocessing_config=MagicMock()
                )

                pipeline = HuggingFaceModelInferencePipeline(self.mock_model, inference_request)
                mock_split_preprocess.reset_mock()
                mock_split_preprocess.return_value = [["original", "preprocessed"]]

                result = pipeline._content_preprocessing()

                mock_split_preprocess.assert_called_once()
                args, kwargs = mock_split_preprocess.call_args
                self.assertEqual(args[0], inference_request.contents)
                self.assertEqual(args[1], self.mock_model.get_preprocessor.return_value)
                self.assertIsInstance(args[2], TextPreprocessingConfig)
                self.assertEqual(result, [["original", "preprocessed"]])
Ensure that the content preprocessing is done correctly for non-text modalities.
tests/unit_tests/marqo/inference/native_inference/test_hugging_face_model_inference_pipeline.py