> <span class="n">col_labels</span><span class="p">]</span>

        <span class="k">else</span><span class="p">:</span>
            <span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;The input `type` of LCA matrix must be either &#39;leaves&#39; or &#39;labels&#39;.&quot;</span><span class="p">)</span>


        <span class="c1"># Initialize the matrix</span>
        <span class="n">n</span> <span class="o">=</span> <span class="nb">len</span><span