def test_use_existing_tensors_non_existing(self):
        """check parity between a doc created with and without use_existing_tensors, then overwritten,
        for a newly created doc.
        """
        self.add_documents(config=self.config, add_docs_params=AddDocsParams(
            index_name=self.index_name_1, docs=[
                {
                    "_id": "123",
                    "title 1": "content 1",
                    "desc 2": "content 2. blah blah blah"
                }], auto_refresh=True, use_existing_tensors=False, device="cpu"))

        regular_doc = tensor_search.get_document_by_id(
            config=self.config, index_name=self.index_name_1,
            document_id="123", show_vectors=True)

        tensor_search.delete_index(config=self.config, index_name=self.index_name_1)
        tensor_search.create_vector_index(config=self.config, index_name=self.index_name_1)

        self.add_documents(config=self.config, add_docs_params=AddDocsParams(
            index_name=self.index_name_1, docs=[
                {
                    "_id": "123",
                    "title 1": "content 1",
                    "desc 2": "content 2. blah blah blah"
                }], auto_refresh=True, use_existing_tensors=True, device="cpu"))
        use_existing_tensors_doc = tensor_search.get_document_by_id(
            config=self.config, index_name=self.index_name_1,
            document_id="123", show_vectors=True)
        self.assertEqual(use_existing_tensors_doc, regular_doc)

        self.add_documents(config=self.config, add_docs_params=AddDocsParams(
            index_name=self.index_name_1, docs=[
                {
                    "_id": "123",
                    "title 1": "content 1",
                    "desc 2": "content 2. blah blah blah"
                }], auto_refresh=True, use_existing_tensors=True, device="cpu"))
        overwritten_doc = tensor_search.get_document_by_id(
            config=self.config, index_name=self.index_name_1,
            document_id="123", show_vectors=True)

        self.assertEqual(use_existing_tensors_doc, overwritten_doc)
check parity between a doc created with and without use_existing_tensors, then overwritten,
        for a newly created doc.
        
tests/integ_tests/tensor_search/test_add_documents_use_existing_tensors.py