code: def untar(tar_file_path, root="./", strict=False):
      """Untars files located at `tar_file_path` into parent directory specified by `root`."""
      root = os.path.expanduser(root)
      with tarfile.open(tar_file_path, "r:gz") as zf:
          if strict or not os.path.exists(
              os.path.join(root, zf.getnames()[-1])
          ):
              zf.extractall(root)
          folder = os.path.commonprefix(zf.getnames())
      return os.path.join(root, folder)
  
imports: import os
  import errno
  import contextlib
  from pathlib import Path
  import tarfile
  import zipfile
label_desc: Use image node_id 14 for calling a global function with example usage: untar(tar_file_path, root, strict) and returns: os