code: def _download_file(url, write_file_name, chunk_size=2**13):
      print("Downloading %s" % url)
      response = urlopen(url)
      if hasattr(response, "getheader"):
          file_size = int(response.getheader("Content-Length").strip())
      else:
          file_size = int(
              response.info().getheader("Content-Length").strip()
          )
      downloaded = 0
      download_file_name = write_file_name + ".part"
      with open(download_file_name, "wb") as f:
          while True:
              chunk = response.read(chunk_size)
              downloaded += len(chunk)
              if not chunk:
                  break
              f.write(chunk)
              _print_progress(downloaded, file_size)
  
      os.rename(download_file_name, write_file_name)
  
file_path: fastText/python/fasttext_module/fasttext/util/util.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import numpy
  import sys
  import shutil
  import os
  import gzip
label_desc: Use image node_id 6 for calling a global function with example usage: _download_file(url, write_file_name, chunk_size) without return types