def test_unstructured_wrong_map_numerical_format(self):
        """
        Test that the wrong map numerical format errors out
        """
        for index in [self.unstructured_default_text_index]:
            with self.subTest(index=index.type):
                # Add documents
                res = self.add_documents(
                    config=self.config,
                    add_docs_params=AddDocsParams(
                        index_name=index.name,
                        docs=[
                            {"_id": "1", "text_field": "a photo of a cat", "map_score_mods_long": {"a": [42]}},
                            {"_id": "2", "text_field": "a photo of a cat", "score_mods_long": {1: 1}},
                            {"_id": "3", "text_field": "a photo of a cat", "score_mods_long": 84},
                            {"_id": "4", "text_field": "a photo of a cat", "score_mods_long": 1,
                             "unsupported_map": {"text": "hello", "number": 42}},
                            {"_id": "5", "text_field": "a photo of a cat", "map_score_mods_int": {"c": 1},
                             "map_score_mods_float": {"a": 0.5}},
                            {"_id": "6", "text_field": "a photo of a dog", "my_int": 2,
                             "my_custom_audio_vector_1": {"vector": [x for x in range(32)]}},
                        ],
                        tensor_fields=["text_field", "my_combination_field", "my_custom_audio_vector_1"],
                        mappings={
                            "my_combination_field": {
                                "type": "multimodal_combination",
                                "weights": {"text2": 0.5, "text_field": 0.5},
                            },
                            "my_custom_audio_vector_1": {"type": "custom_vector"},
                        },
                    )
                ).dict(exclude_none=True, by_alias=True)

                # Expected
                expected_results = {
                    "1": {"status": 400, "error": "in map field is not of type int or float",
                          "code": "invalid_argument"},
                    "2": {"status": 400, "error": "All keys must be strings.", "code": "invalid_argument"},
                    "3": {"status": 200},
                    "4": {"status": 400, "error": "in map field is not of type int or float",
                          "code": "invalid_argument"},
                    "5": {"status": 200},
                    "6": {"status": 200}
                }

                # Get actual returned document
                actual_results = res["items"]

                for item in actual_results:
                    doc_id = item["_id"]
                    expected = expected_results[doc_id]

                    with self.subTest(doc_id=doc_id):
                        self.assertEqual(item["status"], expected["status"],
                                         f"Document {doc_id} status mismatch")

                        if expected["status"] == 400:
                            self.assertIn(expected["error"], item["error"],
                                          f"Document {doc_id} error message mismatch")
                        else:
                            self.assertIn("_id", item, f"Document {doc_id} missing _id field")

                actual_statuses = {item["_id"]: item["status"] for item in res["items"]}
                expected_statuses = {id: data["status"] for id, data in expected_results.items()}
                self.assertEqual(expected_statuses, actual_statuses, "Overall status results mismatch")

        Test that the wrong map numerical format errors out
        
tests/integ_tests/tensor_search/integ_tests/test_dict_score_modifiers.py