code: def _uncompress_file(
      filepath, extrapath, delete_file, print_progress
  ):
      if print_progress:
          print("Uncompress %s" % os.path.basename(filepath))
  
      if filepath.endswith("zip"):
          handler = _uncompress_file_zip
      elif filepath.endswith("tgz"):
          handler = functools.partial(_uncompress_file_tar, mode="r:*")
      else:
          handler = functools.partial(_uncompress_file_tar, mode="r")
  
      for total_num, index, rootpath in handler(filepath, extrapath):
          if print_progress:
              done = int(50 * float(index) / total_num)
              progress(
                  "[%-50s] %.2f%%"
                  % ("=" * done, float(100 * index) / total_num)
              )
      if print_progress:
          progress("[%-50s] %.2f%%" % ("=" * 50, 100), end=True)
  
      if delete_file:
          os.remove(filepath)
  
      return rootpath
  
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 5 for calling a global function with example usage: _uncompress_file(filepath, extrapath, delete_file, print_progress) and returns: rootpath