def testdownload_and_preprocess_image_invalid_url_returns_individual_error(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()
        results = download_and_preprocess_media(content=content, preprocessor=preprocessor,
                                                preprocessing_config=self.preprocessing_config,
                                                return_individual_error=True)

        self.assertEqual(1, len(results))
        self.assertTrue(isinstance(results[0], InferenceErrorModel))
        self.assertIn("This image does not exist in the test data", results[0].error_message)
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