def test_collect_marqo_error_response_should_set_id_as_empty_if_original_id_is_none(self):
        """
        If _id is not provided in the request, we will generate a random one. And this information should not be
        returned to customer if this doc is not persisted. So we set the id in the error response to empty string
        """
        collector = AddDocumentsResponseCollector()
        collector.collect_marqo_doc(5, {'_id': 'doc_id1'}, None)
        collector.collect_error_response('doc_id1', AddDocumentsError('error message'))
        _, add_document_item = collector.responses[0]
        self.assertEqual('', add_document_item.id)

        If _id is not provided in the request, we will generate a random one. And this information should not be
        returned to customer if this doc is not persisted. So we set the id in the error response to empty string
        
tests/unit_tests/marqo/core/vespa_index/test_add_documents_response_collector.py