s="n">parent</span>
            <span class="k">return</span> <span class="n">node</span><span class="o">.</span><span
            class="n">right</span>
        <span class="k">elif</span> <span class="ow">not</span> <span class="n">node</span><span class="o">.</span><span
            class="n">right</span><span class="p">:</span>
            <span class="k">if</span> <span class="n">node</span><span class="o">.</span><span
            class="n">parent</span><span class="p">:</span>
                <span c