code: def get_lines(self):
      lines = []
  
      iteration = self.trainer.updater.iteration
      epoch = self.trainer.updater.epoch_detail
  
      if self.training_length is None:
          t = self.trainer.stop_trigger
          self.training_length = t.get_training_length()
      length, unit = self.training_length
  
      if unit == "iteration":
          rate = iteration / length
      else:
          rate = epoch / length
      rate = min(rate, 1.0)
  
      bar_length = self._bar_length
      marks = "#" * int(rate * bar_length)
      lines.append(
          "     total [{}{}] {:6.2%}\n".format(
              marks, "." * (bar_length - len(marks)), rate
          )
      )
  
      epoch_rate = epoch - int(epoch)
      marks = "#" * int(epoch_rate * bar_length)
      lines.append(
          "this epoch [{}{}] {:6.2%}\n".format(
              marks, "." * (bar_length - len(marks)), epoch_rate
          )
      )
  
      if self.status_template is None:
          self.status_template = (
              "{0.iteration:10} iter, {0.epoch} epoch / %s %ss\n"
              % self.training_length
          )
      status = self.status_template.format(self.trainer.updater)
      lines.append(status)
  
      speed_t, speed_e = self.update_speed(iteration, epoch)
  
      if unit == "iteration":
          estimated_time = (length - iteration) / speed_t
      else:
          estimated_time = (length - epoch) / speed_e
      estimated_time = max(estimated_time, 0.0)
      lines.append(
          "{:10.5g} iters/sec. Estimated time to finish: {}.\n".format(
              speed_t, datetime.timedelta(seconds=estimated_time)
          )
      )
  
      return lines
  
file_path: chainer/chainer/training/extensions/progress_bar.py
imports: from __future__ import division
  import datetime
  import sys
  from chainer.training import extension
  from chainer.training.extensions import util
label_desc: Use image node_id 1 for calling the _TrainerProgressBar obj's underlying member method code with example usage: obj.get_lines() and returns: lines