code: def printProgress(
      iteration, total, prefix="", suffix="", decimals=1, barLength=100
  ):
      """
      Call in a loop to create terminal progress bar
  
      Parameters
      ----------
          iteration: int : current iteration.
          total: int, total iterations.
          prefix: str, prefix string.
          suffix: str, suffix string.
          decimals: int, positive number of decimals in percent complete.
          barLength: int, character length of bar.
      """
      formatStr = "{0:." + str(decimals) + "f}"
      percents = formatStr.format(100 * (iteration / float(total)))
      filledLength = int(round(barLength * iteration / float(total)))
      bar = "" * filledLength + "-" * (barLength - filledLength)
      sys.stdout.write(
          "\r%s |%s| %s%s %s" % (prefix, bar, percents, "%", suffix)
      ),
      if iteration == total:
          sys.stdout.write("\x1b[2K\r")
      sys.stdout.flush()
  
imports: import numpy
  import sys
  from ..filesystem import try_import_cv2
label_desc: Use image node_id 4 for calling a global function with example usage: printProgress(iteration, total, prefix, suffix, decimals, barLength) without return types