code: def _get_queue_batch_size(self, queue):
          
  
          # Fetch one item unless this is a batch queue.
          # XXX: It would be more efficient to loop in reverse order and break.
          batch_queues = self.config['BATCH_QUEUES']
          batch_size = 1
          for part in dotted_parts(queue):
              if part in batch_queues:
                  batch_size = batch_queues[part]
  
          return batch_size
docs: Get queue batch size.