def METHOD_NAME(
    self,
    documents: Sequence[Document],
    show_progress: bool = False,
) -> List[BaseNode]:
    """Parse document into nodes.
    Args:
        documents (Sequence[Document]): documents to parse
        include_metadata (bool): whether to include metadata in nodes
    """
    with self.callback_manager.event(
        CBEventType.NODE_PARSING, payload={EventPayload.DOCUMENTS: documents}
    ) as event:
        all_nodes: List[BaseNode] = []
        documents_with_progress = get_tqdm_iterable(
            documents, show_progress, "Parsing documents into nodes"
        )
        for document in documents_with_progress:
            self.sentence_splitter(document.text)
            nodes = self.build_window_nodes_from_documents([document])
            all_nodes.extend(nodes)
        if self.metadata_extractor is not None:
            all_nodes = self.metadata_extractor.process_nodes(all_nodes)
        event.on_end(payload={EventPayload.NODES: all_nodes})
    return all_nodes