code: def google_calendar(self):
          
          composite = {}
  
          if not self.is_authorized:
              cached_until = 0
              self.is_authorized = self._authorize_credentials()
          else:
              if not self.no_update:
                  self.events = self._get_events()
  
              composite = self._build_response()
              cached_until = self.cache_timeout
  
          return {
              "cached_until": self.py3.time_in(cached_until),
              "composite": self.py3.safe_format(self.format, composite),
          }
docs: The method that outputs the response.
  
          First, we check credential authorization. If no authorization, we
          display an error message, and try authorizing again in 5 seconds.
  
          Otherwise, we fetch the events, build the response, and output
          the resulting composite.