class_docstr: This class manages the coordination process with the consumer coordinator.
docstr: Fetch the current committed offsets for specified partitions
  
  Arguments:
      partitions (list of TopicPartition): partitions to fetch
  
  Returns:
      dict: {TopicPartition: OffsetAndMetadata}
docstr_tok: ["Fetch","the","current","committed","offsets","for","specified","partitions","Arguments",":","partitions","(","list","of","TopicPartition",")",":","partitions","to","fetch","Returns",":","dict",":","{","TopicPartition",":","OffsetAndMetadata","}"]
code: def fetch_committed_offsets(self, partitions):
      """Fetch the current committed offsets for specified partitions
  
      Arguments:
          partitions (list of TopicPartition): partitions to fetch
  
      Returns:
          dict: {TopicPartition: OffsetAndMetadata}
      """
      if not partitions:
          return {}
  
      while True:
          self.ensure_coordinator_ready()
  
          # contact coordinator to fetch committed offsets
          future = self._send_offset_fetch_request(partitions)
          self._client.poll(future=future)
  
          if future.succeeded():
              return future.value
  
          if not future.retriable():
              raise future.exception  # pylint: disable-msg=raising-bad-type
  
          time.sleep(self.config["retry_backoff_ms"] / 1000)
  
imports: from __future__ import absolute_import, division
  import collections
  import copy
  import functools
  import logging
  import time
  from kafka.vendor import six
  from kafka.coordinator.base import BaseCoordinator, Generation
  from kafka.coordinator.assignors.range import RangePartitionAssignor
  from kafka.coordinator.assignors.roundrobin import RoundRobinPartitionAssignor
  from kafka.coordinator.assignors.sticky.sticky_assignor import StickyPartitionAssignor
  from kafka.coordinator.protocol import ConsumerProtocol
  import kafka.errors
  from kafka.future import Future
  from kafka.metrics import AnonMeasurable
  from kafka.metrics.stats import Avg, Count, Max, Rate
  from kafka.protocol.commit import OffsetCommitRequest, OffsetFetchRequest
  from kafka.structs import OffsetAndMetadata, TopicPartition
  from kafka.util import WeakMethod
label_desc: Use image node_id 16 for calling the ConsumerCoordinator obj's underlying member method code with example usage: obj.fetch_committed_offsets(partitions) and returns: dict, future