class_docstr: This class manages the coordination process with the consumer coordinator.
code: def _auto_assign_all_partitions(self):
      # For users that use "subscribe" without group support,
      # we will simply assign all partitions to this consumer
      if self.config["api_version"] < (0, 9):
          return True
      elif self.config["group_id"] is None:
          return True
      else:
          return False
  
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 6 for calling the ConsumerCoordinator obj's underlying member method code with example usage: obj._auto_assign_all_partitions() and returns: True, True, False