code: def extract_tar (archive, compression, cmd, verbosity, interactive, outdir):
      
      cmdlist = [cmd, '--extract']
      add_tar_opts(cmdlist, compression, verbosity)
      cmdlist.extend(["--file", archive, '--directory', outdir])
      return cmdlist
docs: Extract a TAR archive.