def test_add_documents_list_data_type_validation(self):
        """These bad docs should return errors"""
        bad_doc_args = [
            [{"_id": "to_fail_123", "tags": ["wow", "this", False]}],
            [{"_id": "to_fail_124", "tags": [1, None, 3]}],
            [{"_id": "to_fail_125", "tags": [{}]}]
        ]
        for bad_doc_arg in bad_doc_args:
            with self.subTest(bad_doc_arg):
                add_res = self.add_documents(
                    config=self.config, add_docs_params=AddDocsParams(
                        index_name=self.index_name_1,
                        docs=bad_doc_arg,
                        device="cpu"
                    )
                ).dict(exclude_none=True, by_alias=True)
                assert add_res['errors'] is True
                assert all(['error' in item for item in add_res['items']])
                assert all(['All list elements must be of the same type and that type must be int, float or string'
                            in item['message'] for item in add_res['items']])
These bad docs should return errors
tests/integ_tests/tensor_search/integ_tests/test_add_documents_structured.py