><span
            class="o">=</span><span class="n">priority</span><span class="p">)</span>
        <span class="c1"># # UPDATE SIZE OF PARENTS</span>
        <span class="c1"># p = node.parent</span>
        <span class="c1"># while p:</span>
        <span class="c1">#     p.update_size()</span>
        <span class="c1">#     p = p.parent</span>
        <span class="k">return</span> <span class="n">node</span></div>

    <span class="k">def</span> <span class="nf">_insert</span><span class="p">(</span><sp