pan class="n">input_filename</span><span class="p">)</span>
    <span class="n">path</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">input_filename</span><span class="o">.</span><span class="n">parent</span><span class="p">)</span>
    <span class="n">extension</span> <span class="o">=</span> <span class="n">input_filename</span><span class="o">.</span><span class="n">suffix</span>
    <span class="n">name</span> <span class="o">=</span> <span class="n">inp