def testdownload_and_preprocess_image_invalid_url_raises_error_when_return_individual_error_is_false(self, mock_download_image):
        """Check behavior when a non-existent image URL is provided."""
        content = ["http://invalid-url.com/does-not-exist.jpg"]
        preprocessor = CLIPPreprocessor()

        with self.assertRaises(MediaDownloadError) as context:
            download_and_preprocess_media(content=content, preprocessor=preprocessor,
                                          preprocessing_config=self.preprocessing_config, return_individual_error=False)
        self.assertIn("This image does not exist in the test data", str(context.exception))
Check behavior when a non-existent image URL is provided.
tests/unit_tests/marqo/inference/media_download_and_preprocess/test_chunk_download_preprocess_image_content.py