code: def _print_progress(downloaded_bytes, total_size):
      percent = float(downloaded_bytes) / total_size
      bar_size = 50
      bar = int(percent * bar_size)
      percent = round(percent * 100, 2)
      sys.stdout.write(" (%0.2f%%) [" % percent)
      sys.stdout.write("=" * bar)
      sys.stdout.write(">")
      sys.stdout.write(" " * (bar_size - bar))
      sys.stdout.write("]\r")
      sys.stdout.flush()
  
      if downloaded_bytes >= total_size:
          sys.stdout.write("\n")
  
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 5 for calling a global function with example usage: _print_progress(downloaded_bytes, total_size) without return types