code: def progress(self, 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/contrib/MedicalSeg/tools/preprocess_utils/uncompress.py
imports: import os
  import sys
  import glob
  import tarfile
  import time
  import zipfile
  import functools
  import requests
  import shutil
  from .path_utils import join_paths
label_desc: Use image node_id 3 for calling the uncompressor obj's underlying member method code with example usage: obj.progress(str, end) without return types