code: def DownloadProgressPrinter(response, unused_download):
      
      if 'content-range' in response.info:
          print('Received %s' % response.info['content-range'])
      else:
          print('Received %d bytes' % response.length)
docs: Print download progress based on response.