code: def __SendMediaRequest(self, request, end):
          
          def CheckResponse(response):
              if response is None:
                  # Caller shouldn't call us if the response is None,
                  # but handle anyway.
                  raise exceptions.RequestError(
                      'Request to url %s did not return a response.' %
                      response.request_url)
          response = http_wrapper.MakeRequest(
              self.bytes_http, request, retry_func=self.retry_func,
              retries=self.num_retries, check_response_func=CheckResponse)
          if response.status_code == http_wrapper.RESUME_INCOMPLETE:
              last_byte = self.__GetLastByte(
                  self._GetRangeHeaderFromResponse(response))
              if last_byte + 1 != end:
                  self.stream.seek(last_byte + 1)
          return response
docs: Request helper function for SendMediaBody & SendChunk.