code: def extract_tarfile(archive_name, destpath):
      "Unpack a tar archive, optionally compressed"
      archive = tarfile.open(archive_name)
      archive.extractall(destpathf extract_tarfile(archive_name, destpath):
      "Unpack a tar archive, optionally compressed"
      archive = tarfile.open(archive_name)
      archive.extractall(destpath)
docs: Unpack a tar archive, optionally compressed