def test_content_preprocessing_text_modality(self, mock_split_preprocess):
        """Ensure that the content preprocessing is done correctly for text modalities."""
        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.return_value = [["original", "preprocessed"]]

        result = pipeline._content_preprocessing()

        mock_split_preprocess.assert_called_once_with(
            inference_request.contents,
            self.mock_model.get_preprocessor.return_value,
            inference_request.preprocessing_config
        )
        self.assertEqual(result, [["original", "preprocessed"]])
Ensure that the content preprocessing is done correctly for text modalities.
tests/unit_tests/marqo/inference/native_inference/test_hugging_face_model_inference_pipeline.py