code: def make_progressbar(max_value, show_output):
      widgets = [
          progressbar.Timer(format="Time: %(elapsed)s"),
          " |",
          progressbar.Percentage(),
          progressbar.Bar(),
          " ",
          progressbar.ETA(),
      ]
  
      if show_output:
          widgets.extend([" | ", progressbar.DynamicMessage("loss")])
  
      return progressbar.ProgressBar(
          max_value=max_value, widgets=widgets
      )
  
file_path: neupy/neupy/utils/iters.py
imports: from __future__ import division
  import math
  import numpy
  import progressbar
  from neupy.utils.misc import as_tuple
label_desc: Use image node_id 6 for calling a global function with example usage: make_progressbar(max_value, show_output) and returns: progressbar