code: def spreadsheet(service, id):
      
      request = service.spreadsheets().get(spreadsheetId=id)
      try:
          response = request.execute()
      except apiclient.errors.HttpError as e:
          if e.resp.status == 404:
              raise KeyError(id)
          else:  # pragma: no cover
              raise
      return response
docs: Fetch and return spreadsheet meta data with Google sheets API.