def test_add_documents_list_data_type_validation(self):
        """These bad docs should return errors"""
        self.tags_ = [
            [{"_id": "to_fail_123", "tags": ["wow", "this", False]}],
            [{"_id": "to_fail_124", "tags": [1, None, 3]}],
            [{"_id": "to_fail_125", "tags": [{}]}],
            [{"_id": "to_fail_126", "tags": [1, 2, 3]}],
            [{"_id": "to_fail_127", "tags": [1.0, 2.0, 3.0]}],
            [{"_id": "to_fail_128", "tags": [1, 2.0, 3]}],
        ]
        bad_doc_args = self.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.default_text_index,
                        docs=bad_doc_arg,
                        device="cpu",
                        tensor_fields=[],
                    )
                ).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(['Unstructured Marqo index only supports string lists.' 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_semi_structured.py