def listchain(self) -> list[Node]:
        """Return a list of all parent collectors starting from the root of the
        collection tree down to and including self."""
        chain = []
        item: Node | None = self
        while item is not None:
            chain.append(item)
            item = item.parent
        chain.reverse()
        return chain
Return a list of all parent collectors starting from the root of the
        collection tree down to and including self.
src/_pytest/nodes.py