'Selects the node where the dataset will be created.
:param nodes: list of ``Node`` where we will chose one
to create the dataset.
:return: the selected ``Node``.
:raise: ``NoNodesFound`` if the given list of nodes was empty.'

def _get_dataset_node(self, nodes):

    if (not nodes):
        raise NoNodesFound()
    return random.choice(nodes)
