code: def check_ratelimit_budget(self, seconds_waited):
          
          if self.ratelimit_budget is not None:
              self.ratelimit_budget -= seconds_waited
              if self.ratelimit_budget < 1:
                  raise RatelimitBudgetExceeded("Rate limit budget exceeded!")
docs: If we have a ratelimit_budget, ensure it is not exceeded.