pan><span class="n">List</span><span class="p">[</span><span class="n">Any</span><span class="p">],</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">]</span>
    <span class="k">if</span> <span class="n">boxes</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
        <span class="n">sorted_inds</span> <span class="o">=</span> <span class="p">[]</span>  <span class="c1"># avoid crash when &#39;boxes&#39; is None</span>
