class_docstr: Progress bar printer
  
  Args:
      title(str) : Title text
      flush_interval(float): Flush rate of progress bar, default is 0.1.
  
  Examples:
      .. code-block:: python
  
          with ProgressBar('Download module') as bar:
              for i in range(100):
                  bar.update(i / 100)
  
          # with continuous bar.update, the progress bar in the terminal
          # will continue to update until 100%
          #
          # Download module
          # [##################################################] 100.00%
class_docstr_tok: ["Progress","bar","printer","Args",":","title","(","str",")",":","Title","text","flush_interval","(","float",")",":","Flush","rate","of","progress","bar",",","default","is","0.1",".","Examples",":","..","code-block",":",":","python","with","ProgressBar","(","'Download","module","'",")","as","bar",":","for","i","in","range","(","100",")",":","bar.update","(","i","\/","100",")","#","with","continuous","bar.update",",","the","progress","bar","in","the","terminal","#","will","continue","to","update","until","100","%","#","#","Download","module","#","[","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","#","]","100.00","%"]
code: def __init__(self, title: str, flush_interval: float = 0.1):
      self.last_flush_time = time.time()
      self.flush_interval = flush_interval
      self._end = False
      self.title = title
  
imports: import contextlib
  import copy
  import functools
  import logging
  import os
  import sys
  import time
  import threading
  from typing import List
  import colorlog
  from colorama import Fore
  import paddlehub.config
  from paddlehub.env import LOG_HOME
label_desc: Use image node_id 1 to create a new ProgressBar object from inherited base classes: object with example: obj = ProgressBar(title, flush_interval)