code: def templates(self, name=None, params=None):
          
          return self.transport.perform_request('GET', _make_path('_cat',
              'templates', name), params=params)
docs: `<https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-templates.html>`_
  
          :arg name: A pattern that returned template names must match
          :arg format: a short version of the Accept header, e.g. json, yaml
          :arg h: Comma-separated list of column names to display
          :arg help: Return help information, default False
          :arg local: Return local information, do not retrieve the state from
              master node (default: false)
          :arg master_timeout: Explicit operation timeout for connection to master
              node
          :arg s: Comma-separated list of column names or column aliases to sort
              by
          :arg v: Verbose mode. Display column headers, default False