def select_node(nodes):
    if nodes:
        return random.choice(nodes)
    else:
        raise EmptyClusterError("Cluster contains no nodes.")
Select a node from a list of nodes.
dataset/ETHPy150Open ClusterHQ/flocker/benchmark/operations/_common.py/select_node