ss="s2">...&quot;</span><span class="p">)</span>

        <span class="n">pair_counts_permuted</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">zeros</span><span class="p">((</span><span class="n">max_index</span><span class="p">,</span> <span class="n">max_index</span><span class="p">))</span>

        <span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">j</span><span class="p">,</span> <span class="n">val</span> <span c