code: def untar(filepath, logger):
      if tarfile.is_tarfile(filepath):
          new_folder = os.path.splitext(filepath)[0]
          tar_name = os.path.basename(filepath)
          with tarfile.open(filepath) as tar:
              members = tar.getmembers()
              if not os.path.exists(new_folder):
                  os.mkdir(new_folder)
              else:
                  f = os.listdir(new_folder)
                  if len(members) == len(f):
                      logger.info(f"{tar_name} already decompressed")
                      return new_folder
              logger.info(f"{tar_name} decompressing...")
              os.system(f"tar -xf {filepath} -C {new_folder}")
              logger.info(f"{tar_name} decompressed!")
          return new_folder
  
file_path: mmdetection/tools/dataset_converters/grit_processing.py
imports: import argparse
  import json
  import logging
  import os
  import tarfile
  from functools import partial
  from multiprocessing import Pool
label_desc: Use image node_id 4 for calling a global function with example usage: untar(filepath, logger) and returns: new_folder, new_folder