>

            <span class="n">tar_file</span><span class="o">.</span><span class="n">extractall</span><span class="p">(</span><span class="n">output_dir</span><span class="p">)</span>

        <span class="n">_safe_extract</span><span class="p">()</span>



<span class="k">def</span><span class="w"> </span><span class="nf">_extractnested_archive</span><span class="p">(</span>
    <span class="n">archive_path</span><span class="p">:</span><span class="nb">str</span><span class="p">,</span>
    <span class="