@staticmethod
def get_all_parents(node_pks, return_values=('id',)):
    """Get all the parents of given nodes

        :param node_pks: one node pk or an iterable of node pks
        :return: a list of aiida objects with all the parents of the nodes"""
    from aiida.orm import Node, QueryBuilder
    q_build = QueryBuilder()
    q_build.append(Node, tag='low_node', filters={'id': {'in': node_pks}})
    q_build.append(Node, with_descendants='low_node', project=return_values)
    return q_build.all()
