docs: def _get_context_from_gdoc(self, key):
          """
          Create a Jinja2 context from a Google spreadsheet.
          """
          try:
              content = self.export_xlsx(key)
              data = process_xlsx(content)
              if 'values' in data:
                  data = copy_global_values(data)
              return data
          except BadStatusLine:
              # Stale connection, reset API and data
              puts("Connection reset, reloading drive API")
              self.client = get_drive_api()
              return self._get_context_from_gdoc(key)