code: def node(self, name):
          
          nodes = self.nodes(path=name)
          return next(node for node in nodes)
docs: Gets a single node from PuppetDB.
  
          :param name: The name of the node search.
          :type name: :obj:`string`
  
          :return: An instance of Node
          :rtype: :class:`pypuppetdb.types.Node`