<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def extract_ape (archive, compression, cmd, verbosity, interactive, outdir):
 """Decompress an APE archive to a WAV file."""

    outfile = util.get_single_outfile(outdir, archive, extension=".wav")
    return [cmd, archive, outfile, '-d']