code: def time_to_next_poll(self):
          
          if not self.config['enable_auto_commit']:
              return self.time_to_next_heartbeat()
  
          if time.time() > self.next_auto_commit_deadline:
              return 0
  
          return min(self.next_auto_commit_deadline - time.time(),
                     self.time_to_next_heartbeat())
docs: Return seconds (float) remaining until :meth:`.poll` should be called again