code: def exists_type(self, index, doc_type, params=None):
          
          for param in (index, doc_type):
              if param in SKIP_IN_PATH:
                  raise ValueError("Empty value passed for a required argument.")
          return self.transport.perform_request(
              "HEAD", _make_path(index, "_mapping", doc_type), params=params
          )
docs: Check if a type/types exists in an index/indices.
          `<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-types-exists.html>`_
  
          :arg index: A comma-separated list of index names; use `_all` to check
              the types across all indices
          :arg doc_type: A comma-separated list of document types to check
          :arg allow_no_indices: Whether to ignore if a wildcard indices
              expression resolves into no concrete indices. (This includes `_all`
              string or when no indices have been specified)
          :arg expand_wildcards: Whether to expand wildcard expression to concrete
              indices that are open, closed or both., default 'open', valid
              choices are: 'open', 'closed', 'none', 'all'
          :arg ignore_unavailable: Whether specified concrete indices should be
              ignored when unavailable (missing or closed)
          :arg local: Return local information, do not retrieve the state from
              master node (default: false)