def test_update_image_pointer_field(self):
        """Test that we can update the image_pointer_field in a document.

        Note: We can only update an image pointer field when it is not a tensor field."""
        original_doc = {
            "image_pointer_field": "https://marqo-assets.s3.amazonaws.com/tests/images/image1.jpg",
            "text_field_tensor": "search me",
            "_id": "1"
        }
        # Add the original document to the index
        self.client.index(self.update_doc_index_name).add_documents(documents=[original_doc])
        # Verify the document has been added
        self.assertEqual(1, self.client.index(self.update_doc_index_name).get_stats()["numberOfDocuments"])

        updated_doc = {
            "image_pointer_field": "https://marqo-assets.s3.amazonaws.com/tests/images/image2.jpg",
            "_id": "1"
        }
        # Update the document's image pointer field
        r = self.client.index(self.update_doc_index_name).update_documents(documents=[updated_doc])

        # Retrieve the updated document to verify the update
        updated_doc = self.client.index(self.update_doc_index_name).get_document(updated_doc["_id"])
        self.assertEqual("https://marqo-assets.s3.amazonaws.com/tests/images/image2.jpg",
                         updated_doc["image_pointer_field"])
Test that we can update the image_pointer_field in a document.

        Note: We can only update an image pointer field when it is not a tensor field.
tests/api_tests/v1/tests/api_tests/structured_index/test_partial_update_document.py