def METHOD_NAME(self, documents: List[Document], policy: DuplicatePolicy = DuplicatePolicy.FAIL) -> None:
    """
    Writes (or overwrites) documents into the DocumentStore.
    :param documents: a list of documents.
    :param policy: documents with the same ID count as duplicates. When duplicates are met,
        the DocumentStore can:
         - skip: keep the existing document and ignore the new one.
         - overwrite: remove the old document and write the new one.
         - fail: an error is raised
    :raises DuplicateError: Exception trigger on duplicate document if `policy=DuplicatePolicy.FAIL`
    :return: None
    """