code: def printProgressBar(
      prefix="", suffix="", decimals=1, length=100, fill="█"
  ):
      """
      Call in a loop to create terminal progress bar
      @params:
          prefix      - Optional  : prefix string (Str)
          suffix      - Optional  : suffix string (Str)
          decimals    - Optional  : positive number of decimals in percent complete (Int)
          length      - Optional  : character length of bar (Int)
          fill        - Optional  : bar fill character (Str)
          printEnd    - Optional  : end character (e.g. "\r", "\r\n") (Str)
      """
  
      def progress_hook(count, blockSize, totalSize):
          progress = count * blockSize / totalSize
          percent = ("{0:." + str(decimals) + "f}").format(
              progress * 100
          )
          filledLength = int(length * progress)
          bar = fill * filledLength + "-" * (length - filledLength)
          print(f"\r{prefix} |{bar}| {percent}% {suffix}", end="")
  
      return progress_hook
  
imports: from __future__ import print_function
  import torch
  import pickle
  import numpy
  import math
  import cv2
  from PIL import Image, JpegImagePlugin
  from scipy import ndimage
  import hashlib
  import sys, os
  from zipfile import ZipFile
  from .imgproc import loadImage
label_desc: Use image node_id 18 for calling a global function with example usage: printProgressBar(prefix, suffix, decimals, length, fill) and returns: progress_hook