code: def Dump(self, output):
      
      data = {
          'current_content_length': self._current_content_length,
          'is_last': self._is_last,
          'server': self._request_builder.GetServer(),
          'upload_url': self._upload_url,
          'version': self._request_builder.GetVersion()
      }
  
      try:
        yaml.dump(data, output)
      except yaml.YAMLError as e:
        raise googleads.errors.GoogleAdsError(
            'Error dumping IncrementalUploadHelper to file: %s' % str(e))
docs: Serialize the IncrementalUploadHelper and store in file-like object.
  
      Args:
        output: a file-like object where the status of the IncrementalUploadHelper
          will be written.
  
      Raises:
        GoogleAdsError: If a YAMLError occurs while writing to the file.