def test_prob_modality_correct_image(self):
        """Ensure that the probed modality is correct for various image formats. Note that
        an error is raised as StreamingMediaProcessor is not designed to handle images."""
        for url in [
            TestImageUrls.IMAGE1.value, TestImageUrls.IMAGE2.value, TestImageUrls.IMAGE3.value,
            TestImageUrls.COCO.value
        ]:
            with self.subTest(url=url):
                with self.assertRaises(MediaMismatchError) as e:
                    _ = StreamingMediaProcessor(
                        url=url, preprocessors=self.test_preprocessor,
                        preprocessing_config=self.test_video_preprocessing_config
                    )
                self.assertIn('the detected modality image', str(e.exception))
Ensure that the probed modality is correct for various image formats. Note that
        an error is raised as StreamingMediaProcessor is not designed to handle images.
tests/integ_tests/inference/native_inference/media_download_and_preprocess/test_streaming_media_preprcessor.py