leaves</span><span class="p">()</span>
            <span class="c1"># keys = list(range(len(nodes)))</span>
            <span class="c1"># print(nodes,keys)</span>
            <span class="n">col_labels</span> <span class="o">=</span> <span class="n">nodes</span>

        <span class="k">elif</span> <span class="nb">type</span> <span class="o">==</span> <span class="s1">&#39;labels&#39;</span><span class="p">:</span>
            <span class="n">col_labels</span> <span class="o">=</span> <span class="nb">lis