code: def _uncompress_file_tar(self, filepath, extrapath, mode="r:gz"):
      files = tarfile.open(filepath, mode)
      filelist = files.getnames()
      total_num = len(filelist)
      rootpath = filelist[0]
      for index, file in enumerate(filelist):
          files.extract(file, extrapath)
          yield total_num, index, rootpath
      files.close()
      yield total_num, index, rootpath
  
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 4 for calling the uncompressor obj's underlying member method code with example usage: obj._uncompress_file_tar(filepath, extrapath, mode) without return types