code: def get_node_by_name(self, nodename):
          
          for kind, nodes in self.nodes.items():
              for node in nodes:
                  if node.name == nodename:
                      return node
          else:
              raise NodeNotFound(
                  "Node `{0}` not found in cluster `{1}`"
                  .format(nodename, self.name))
docs: Return the node corresponding with name `nodename`
  
          :params nodename: Name of the node
          :type nodename: str