class_docstr: Provides a `total_time` format parameter
class_docstr_tok: ["Provides","a","`","total_time","`","format","parameter"]
docstr: Be careful to avoid expensive update hooks
docstr_tok: ["Be","careful","to","avoid","expensive","update","hooks"]
code: def display(self, *args, **kwargs):
      """
      Be careful to avoid expensive update hooks
      """
      curr_time = time.time()
      update = False
      if curr_time - self.last_update > self._quiet_update_frequency:
          update = True
          self.last_update = curr_time
  
      if self._update_hook is not None and update:
          self._update_hook(self.format_dict)
      if self._quiet:
          if update:
              self.fp.write(
                  "{prefix}: {n} / {total} {unit} Estimated {estimated_remaining_seconds} seconds remaining. \n".format(
                      **self.format_dict
                  )
              )
              self.fp.flush()
      else:
          return super().display(*args, **kwargs)
  
imports: import time
  from tqdm import tqdm
label_desc: Use image node_id 3 for calling the ProgressBar obj's underlying member method code with example usage: obj.display() and returns: super