code: def _get_sleep_interval(self, start_time):
          
          elapsed = time.time() - start_time
          if elapsed < 0.05:
              return 0.01
          elif elapsed < 1.0:
              return 0.05
          elif elapsed < 10.0:
              return 0.1
          elif elapsed < 60.0:
              return 0.5
          return 1.0
docs: Returns a step function of time to sleep in seconds before polling
          again. Maximum sleep is 1s, minimum is 0.1s