original_docstring: 
          Check All Lodging in Yellowstone for Campground Availability
  
          Returns
          -------
          data_availability: dict
              Data Availability Dictionary
          
docstring: Check All Lodging in Yellowstone for Campground Availability
  Returns
  
  dict
  Data Availability Dictionary
docstring_tokens: Check All Lodging in Yellowstone for Campground Availability Returns dict Data Availability Dictionary
code: def check_yellowstone_lodging(self) -> dict:
          """
          Check All Lodging in Yellowstone for Campground Availability
  
          Returns
          -------
          data_availability: dict
              Data Availability Dictionary
          """
          query_dict = dict(date=self._formatted_booking_start_slashes,
                            nights=self.number_of_nights,
                            limit=self.number_of_nights,
                            adults=self.number_of_guests,
                            rate_code=YellowstoneConfig.RATE_CODE)
          api_endpoint = self._get_api_endpoint(query=query_dict)
          logger.info(f"Searching for Yellowstone Lodging Availability: "
                      f"{self._formatted_booking_start_slashes} | "
                      f"{self.number_of_nights} Nights | {self.number_of_guests} Guests")
  
          try:
              # EXPONENTIAL BACKOFF: 27, 81, 243, 729...
              wait_time = 27
              for _ in range(5):
                  all_resort_availability = requests.get(url=api_endpoint,
                                                         headers=YellowstoneConfig.API_HEADERS)
                  if all_resort_availability.status_code == 200:
                      break
                  logger.warning("Uh oh, something went wrong while requesting data from "
                                 f"Yellowstone. Waiting {wait_time} seconds before trying again.")
                  sleep(wait_time)
                  wait_time *= 3
              assert all_resort_availability.status_code == 200
          except AssertionError:
              error_message = ("Something went wrong with checking the "
                               f"Yellowstone Booking API. Exiting. {all_resort_availability.text}")
              logger.error(error_message)
              PushoverNotifications.send_message(
                  message=error_message,
                  title="Campsite Search: SOS")
              raise RuntimeError(f"error_message: {all_resort_availability}")
  
          all_resort_availability_data = loads(all_resort_availability.content)
          starting_day_availability = all_resort_availability_data[
              YellowstoneConfig.BOOKING_AVAILABILITY][self._formatted_booking_start_slashes]
          data_availability = self._scan_for_availabilities(
              starting_day_availability=starting_day_availability)
          return data_availability
code_tokens: def check_yellowstone_lodging ( self ) -> dict : query_dict = dict ( date = self . _formatted_booking_start_slashes , nights = self . number_of_nights , limit = self . number_of_nights , adults = self . number_of_guests , rate_code = YellowstoneConfig . RATE_CODE ) api_endpoint = self . _get_api_endpoint ( query = query_dict ) logger . info ( f"Searching for Yellowstone Lodging Availability: " f"{self._formatted_booking_start_slashes} | " f"{self.number_of_nights} Nights | {self.number_of_guests} Guests" ) try : wait_time = 27 for _ in range ( 5 ) : all_resort_availability = requests . get ( url = api_endpoint , headers = YellowstoneConfig . API_HEADERS ) if all_resort_availability . status_code == 200 : break logger . warning ( "Uh oh, something went wrong while requesting data from " f"Yellowstone. Waiting {wait_time} seconds before trying again." ) sleep ( wait_time ) wait_time *= 3 assert all_resort_availability . status_code == 200 except AssertionError : error_message = ( "Something went wrong with checking the " f"Yellowstone Booking API. Exiting. {all_resort_availability.text}" ) logger . error ( error_message ) PushoverNotifications . send_message ( message = error_message , title = "Campsite Search: SOS" ) raise RuntimeError ( f"error_message: {all_resort_availability}" ) all_resort_availability_data = loads ( all_resort_availability . content ) starting_day_availability = all_resort_availability_data [ YellowstoneConfig . BOOKING_AVAILABILITY ] [ self . _formatted_booking_start_slashes ] data_availability = self . _scan_for_availabilities ( starting_day_availability = starting_day_availability ) return data_availability
short_docstring: Check All Lodging in Yellowstone for Campground Availability
  Returns
short_docstring_tokens: Check All Lodging in Yellowstone for Campground Availability Returns
comment: """
          Check All Lodging in Yellowstone for Campground Availability
  
          Returns
          -------
          data_availability: dict
              Data Availability Dictionary
          """$SEP$# EXPONENTIAL BACKOFF: 27, 81, 243, 729...