n">output_dir</span><span class="p">:</span><span class="nb">str</span><span class="p">,</span>
    <span class="n">extract_nested</span><span class="p">:</span><span class="nb">bool</span><span class="p">,</span>
    <span class="n">remove_root_dir</span><span class="p">:</span><span class="nb">bool</span>
<span class="p">):</span>
    <span class="n">ext</span> <span class="o">=</span> <span class="n">path</span><span class="o">.</span><span class="n">extension</span><span class="p">(</span><span class="n