code: def get_cool_off() -> Optional[timedelta]:
      
  
      cool_off = settings.AXES_COOLOFF_TIME
  
      if isinstance(cool_off, int):
          return timedelta(hours=cool_off)
      return cool_off
docs: Return the login cool off time interpreted from settings.AXES_COOLOFF_TIME.
  
      The return value is either None or timedelta.
  
      Notice that the settings.AXES_COOLOFF_TIME is either None, timedelta, or integer of hours,
      and this function offers a unified _timedelta or None_ representation of that configuration
      for use with the Axes internal implementations.
  
      :exception TypeError: if settings.AXES_COOLOFF_TIME is of wrong type.