code: def catalog(self, node):
          
          catalogs = self.catalogs(path=node)
          return next(x for x in catalogs)
docs: Get the available catalog for a given node.
  
          :param node: (Required) The name of the PuppetDB node.
          :type: :obj:`string`
  
          :returns: An instance of Catalog
          :rtype: :class:`pypuppetdb.types.Catalog`