code: def progress_bar_wrapper(count, block_size, total_size):
      """
      Uses the common progress bar in the urlretrieve hook format
      """
      if block_size * 5 >= total_size:
          # no progress bar for tiny files
          return
      print_progress_bar(
          iteration=count,
          total=math.ceil(float(total_size) / float(block_size)),
          prefix="Downloading (total: %.2f M): "
          % (total_size * 1.0 / 1e6),
      )
  
imports: from __future__ import absolute_import
  from __future__ import print_function
  import argparse
  import math
  import os
  import re
  import shutil
  import tarfile
  import tempfile
  from distutils.version import LooseVersion
  from six.moves.urllib.parse import urlparse
  from six.moves.urllib.request import urlopen
  from six.moves.urllib.request import urlretrieve
  from niftynet.utilities.niftynet_global_config import NiftyNetGlobalConfig
  from niftynet.utilities import NiftyNetLaunchConfig
  from niftynet.utilities.util_common import print_progress_bar
  from niftynet.utilities.versioning import get_niftynet_version, get_niftynet_version_string
label_desc: Use image node_id 6 for calling a global function with example usage: progress_bar_wrapper(count, block_size, total_size) without return types