def METHOD_NAME(self, node: T) -> DAG[T]:
    """Get a dag of the node and its upstream dependencies and downstream dependents.
    Args:
        node: The node used to determine lineage.
    Returns:
        A new dag consisting of the dependent and descendant nodes.
    """
    return self.subdag(node, *self.downstream(node))