code: def segments(self, using=None, **kwargs):
          
          return self._get_connection(using).indices.segments(index=self._name, **kwargs)
docs: Provide low level segments information that a Lucene index (shard
          level) is built with.
  
          Any additional keyword arguments will be passed to
          ``Elasticsearch.indices.segments`` unchanged.