docs: def get_node_by_name(self, nodename):
          """Return the node corresponding with name `nodename`
  
          :params nodename: Name of the node
          :type nodename: str
          """
          nodes = dict((n.name, n) for n in self.get_all_nodes())
          try:
              return nodes[nodename]
          except KeyError:
              raise NodeNotFound("Node %s not found" % nodename)