code: def progress_bar_terminal(
      iteration,
      total,
      prefix="",
      suffix="",
      decimals=0,
      length=100,
      fill="█",
      printend="\r",
  ):
      """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
      length: int
          character length of bar
      fill: str
          bar fill character
      printend: str
          end character (e.g. "\r", "\r\n")
      """
  
      percent = ("{0:." + str(decimals) + "f}").format(
          100 * (iteration / float(total))
      )
      filledlength = int(length * iteration // total)
      bar = fill * filledlength + "-" * (length - filledlength)
      print(
          "\r%s |%s| %s%% %s" % (prefix, bar, percent, suffix),
          end=printend,
      )
      # Print New Line on Complete
      if iteration == total:
          print()
  
imports: from IPython.display import HTML
  from IPython import get_ipython
label_desc: Use image node_id 1 for calling a global function with example usage: progress_bar_terminal(iteration, total, prefix, suffix, decimals, length, fill, printend) without return types