code: def api_range(
          self, serial: str, date: Optional[timelike] = None
      ) -> SensorRange:
          
  
          if date is None:
              date = round_time(datetime.now(timezone.utc), by=timedelta(days=1))
          else:
              date = to_datetime(date)
          date = int(date.timestamp())
  
          c = requests.get(
              f"https://opensky-network.org/api/range/days"
              f"?days={date}&serials={serial}"
          )
          if c.status_code != 200:
              raise ValueError(c.content.decode())
          return SensorRange(c.json())
docs: Wraps a polygon representing a sensor's range.
  
          By default, returns the current range. Otherwise, you may enter a
          specific day (as a string, as an epoch or as a datetime)