ass="n">inp</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span>

        <span class="c1"># Determine the number of jobs</span>
        <span class="k">if</span> <span class="n">n_jobs</span> <span class="o">&lt;</span> <span class="mi">0</span><span class="p">:</span>
            <span class="n">n_jobs</span> <span class="o">=</span> <span class="n">joblib</span><span class="o">.</span><span class="n">cpu_count</span><span class="p">(</span><span class="n">only_physical_cores</