def METHOD_NAME(cls: Type["DepthMap"], parent: BaseSegment) -> "DepthMap":
    """Generate a DepthMap from all the children of a segment.
    NOTE: This is the most efficient way to construct a DepthMap
    due to caching in the BaseSegment.
    """
    return cls(raws_with_stack=parent.raw_segments_with_ancestors)