def METHOD_NAME(self, ids: list[int]) -> list[Node]:
    """
    Returns a subset of nodes that are part of the given organizations.
    Parameters
    ----------
    ids : list[int]
        List of organization ids
    Returns
    -------
    list[:class:`~vantage6.server.model.node.Node`]
        List of nodes that are part of the given organizations
    """
    return [n for n in self.nodes if n.organization.id in ids]