def test_search_invalid_image_url_image_return_proper_error(self):
        """A test to ensure that InvalidArgumentError is raised when searching for an invalid image url."""
        test_queries_list = [
            ("https://a-dummy-image-url.com/image1.jpg", "A invalid image"),
            ({"https://a-dummy-image-url.com/image2.jpg": 1, "test": 1},
             "A invalid image in the dictionary")
        ]

        for index_name in [self.unstructured_default_image_index, self.structured_default_image_index]:
            for query, msg in test_queries_list:
                with self.subTest(f"{index_name} - {query}"):
                    with self.assertRaises(api_exceptions.InvalidArgError) as e:
                        tensor_search.search(
                            text=query, config=self.config, index_name=index_name.name,
                        )
                    self.assertIn("Error vectorising content", str(e.exception))
A test to ensure that InvalidArgumentError is raised when searching for an invalid image url.
tests/integ_tests/tensor_search/integ_tests/test_search_combined.py