       remove_root_dir: If the archive has a root directory, then remove it from the extracted path</span>
<span class="sd">        clean_dest_dir: Clean the destination directory before extracting</span>
<span class="sd">    """</span>
    <span class="k">if</span> <span class="n">clean_dest_dir</span><span class="p">:</span>
        <span class="k">if</span> <span class="nb">callable</span><span class="p">(</span><span class="n">clean_dest_dir</span><span class="p">):</span>
            <span class="n">cl