class_docstr: Computes query statistics metrics.
class_docstr_tok: ["Computes","query","statistics","metrics","."]
code: def extract_output(
      self, accumulator: _QueryStatisticsAccumulator
  ) -> Dict[metric_types.MetricKey, float]:
      return {
          self._total_queries_key: accumulator.total_queries,
          self._total_documents_key: accumulator.total_documents,
          self._min_documents_key: accumulator.min_documents,
          self._max_documents_key: accumulator.max_documents,
      }
  
file_path: model-analysis/tensorflow_model_analysis/metrics/query_statistics.py
imports: from typing import Dict, Iterable, Optional
  import apache_beam
  from tensorflow_model_analysis.metrics import metric_types
  from tensorflow_model_analysis.metrics import metric_util
  from tensorflow_model_analysis.proto import config_pb2
label_desc: Use image node_id 5 for calling the _QueryStatisticsCombiner obj's underlying member method code with example usage: obj.extract_output(accumulator) and returns: dict