class_docstr: A compound stat that reports one or more percentiles
class_docstr_tok: ["A","compound","stat","that","reports","one","or","more","percentiles"]
code: def stats(self):
      measurables = []
  
      def make_measure_fn(pct):
          return lambda config, now: self.value(
              config, now, pct / 100.0
          )
  
      for percentile in self._percentiles:
          measure_fn = make_measure_fn(percentile.percentile)
          stat = NamedMeasurable(
              percentile.name, AnonMeasurable(measure_fn)
          )
          measurables.append(stat)
      return measurables
  
file_path: kafka-python/kafka/metrics/stats/percentiles.py
imports: from __future__ import absolute_import
  from kafka.metrics import AnonMeasurable, NamedMeasurable
  from kafka.metrics.compound_stat import AbstractCompoundStat
  from kafka.metrics.stats import Histogram
  from kafka.metrics.stats.sampled_stat import AbstractSampledStat
label_desc: Use image node_id 2 for calling the Percentiles obj's underlying member method code with example usage: obj.stats() and returns: measurables, function