code: def progress(str, end=False):
      global lasttime
      if end:
          str += "\n"
          lasttime = 0
      if time.time() - lasttime >= FLUSH_INTERVAL:
          sys.stdout.write("\r%s" % str)
          lasttime = time.time()
          sys.stdout.flush()
  
file_path: PaddleSeg/paddleseg/utils/download.py
imports: import functools
  import os
  import shutil
  import sys
  import tarfile
  import time
  import zipfile
  import requests
label_desc: Use image node_id 1 for calling a global function with example usage: progress(str, end) without return types