def test_mismatched_preprocessed_output_length(self, mock_preprocess):
        """Check that mismatched lengths raise a ValueError."""
        content = ["Test sentence"]
        preprocessor = CLIPPreprocessor()
        preprocessing_config = TextPreprocessingConfig(
            should_chunk=True,
            chunk_config=TextChunkConfig(split_method="word", split_length=3, split_overlap=1),
            text_prefix=None
        )

        with self.assertRaises(ValueError) as context:
            split_prefix_preprocess_text(content, preprocessor, preprocessing_config)

        self.assertIn("The number of preprocessed texts does not match the number of chunks",
                      str(context.exception))
        mock_preprocess.assert_called()
Check that mismatched lengths raise a ValueError.
tests/unit_tests/marqo/inference/media_download_and_preprocess/test_chunk_download_preprocess_text_content.py