code: def _progress_check(count, block_size, total_size):
      read_size = count * block_size
      read_size_str = sizeof_fmt(read_size)
      if total_size > 0:
          percent = int(count * block_size * 100 / total_size)
          percent = min(percent, 100)
          sys.stdout.write(
              "\rprogress: {} downloaded, {}%.".format(
                  read_size_str, percent
              )
          )
          if read_size >= total_size:
              sys.stdout.write("\n")
      else:
          sys.stdout.write(
              "\rprogress: {} downloaded.".format(read_size_str)
          )
      sys.stdout.flush()
  
file_path: MMdnn/mmdnn/conversion/common/utils.py
imports: from __future__ import division
  import os
  import sys
  import numpy
  from six import text_type, binary_type, integer_types
  import mmdnn.conversion.common.IR.graph_pb2
label_desc: Use image node_id 10 for calling a global function with example usage: _progress_check(count, block_size, total_size) without return types