code: def extract_rar (archive, compression, cmd, verbosity, interactive, outdir):
      
      cmdlist = [cmd, 'x']
      if not interactive:
          cmdlist.extend(['-p-', '-y'])
      cmdlist.extend(['--', os.path.abspath(archive)])
      return (cmdlist, {'cwd': outdir})
docs: Extract a RAR archive.