0</span><span class="p">])</span>

<span class="nb">print</span><span class="p">(</span><span class="n">id_a</span><span class="p">)</span>  <span class="c1"># =&gt; 0</span>
<span class="nb">print</span><span class="p">(</span><span class="n">id_b</span><span class="p">)</span>  <span class="c1"># =&gt; 1</span>

<span class="c1"># Find the two closest elements:</span>
<span class="n">neighbors</span><span class="p">,</span> <span class="n">distances</span> <span class="o">=</span> <span class="n">index</s