def test_embed_image_url_as_image_not_text(self):
        """
        Test that image URLs are embedded as images and not as text using the embed function.
        """
        image_url = TestImageUrls.IMAGE2.value
        
        # Expected vector for the image (same as in test_multimodal_image_url_is_embedded_as_image_not_text)
        expected_vector = [-0.06504671275615692, -0.03672310709953308, -0.06603428721427917,
                        -0.032505638897418976, -0.06116769462823868, -0.03929287940263748]

        for index in [self.unstructured_image_index_request, self.structured_image_index_request]:
            with self.subTest(index=index.type):
                embed_res = embed(
                    marqo_config=self.config,
                    index_name=index.name,
                    embedding_request=EmbedRequest(
                        content=[image_url]
                    ),
                    device="cpu"
                )

                # Get the actual vector
                actual_vector = embed_res["embeddings"][0]

                # Assert that the vector is similar to expected_vector
                for i, expected_value in enumerate(expected_vector):
                    self.assertAlmostEqual(actual_vector[i], expected_value, places=4,
                                        msg=f"Mismatch at index {i} for {index.type}")

        Test that image URLs are embedded as images and not as text using the embed function.
        
tests/integ_tests/tensor_search/integ_tests/test_embed.py