n class="nb">list</span><span class="p">(</span><span class="n">remain_list</span><span class="p">),</span> <span class="n">size</span><span class="o">=</span><span class="n">diff</span><span class="p">,</span> <span class="n">replace</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
                <span class="n">non_negative_weight_indices</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">new_idxs</span><span class="p">)</