def test_get_status_response_results_image_index(self):
        """Ensure that the number of vectors and documents is correct, with or without mappings"""

        image_content = "https://marqo-assets.s3.amazonaws.com/tests/images/image2.jpg"

        test_cases = [
            ([
                 {"title": "test-2", "image_content": image_content},  # 2 vectors
                 # 2 vectors
                 {"title": "test-2", "image_content": image_content, "non_tensor": "test"},
                 {"title": "test"},  # 1 vector
                 {"image_content": image_content},  # 1 vector
                 {"non_tensor": "test"}  # 0 vector
             ], None, 5, 6, "No mappings"),
            ([
                 {"title": "test-2", "image_content": image_content},  # 3 vectors (with multimodal_field)
                 # 3 vectors (with multimodal_field)
                 {"title": "test-2", "image_content": image_content, "non_tensor": "test"},
                 {"title": "test"},  # 2 vectors (with multimodal_field)
                 {"image_content": image_content},  # 2 vectors (with multimodal_field)
                 {"non_tensor": "test"}  # 0 vector
             ],
             {"my_multi_modal_field": {"type": "multimodal_combination",
                                       "weights": {"title": 0.5, "image_content": 0.8}}},
             5, 10, "With mappings"),
        ]

        for documents, mappings, number_of_documents, number_of_vectors, msg in test_cases:
            self.clear_indexes([self.image_index_name])
            with self.subTest(msg):
                self.client.index(self.image_index_name).add_documents(
                    documents=documents,
                    device="cpu",
                    mappings=mappings,
                    tensor_fields=["title", "image_content", "my_multi_modal_field"]
                )

                res = self.client.index(self.image_index_name).get_stats()
                self.assertEqual(number_of_documents, res["numberOfDocuments"])
                self.assertEqual(number_of_vectors, res["numberOfVectors"])
Ensure that the number of vectors and documents is correct, with or without mappings
tests/api_tests/v1/tests/api_tests/unstructured_index/test_get_stats.py