code: def print_progress_bar(
      iteration,
      total,
      prefix="",
      suffix="",
      decimals=1,
      length=10,
      fill="=",
  ):
      """
      Call in a loop to create terminal progress bar
  
      :param iteration: current iteration (Int)
      :param total: total iterations (Int)
      :param prefix: prefix string (Str)
      :param suffix: suffix string (Str)
      :param decimals: number of decimals in percent complete (Int)
      :param length: character length of bar (Int)
      :param fill: bar fill character (Str)
      """
      percent = ("{0:." + str(decimals) + "f}").format(
          100 * (iteration / float(total))
      )
      filledLength = int(length * iteration // total)
      bars = fill * filledLength + "-" * (length - filledLength)
      print(
          "\r%s |%s| %s%% %s" % (prefix, bars, percent, suffix),
          end="\r",
      )
      # Print New Line on Complete
      if iteration == total:
          print("\n")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import datetime
  import os
  import re
  from functools import partial
  import numpy
  import tensorflow
  from scipy import ndimage
  from six import string_types
label_desc: Use image node_id 14 for calling a global function with example usage: print_progress_bar(iteration, total, prefix, suffix, decimals, length, fill) without return types