9;include&#39; or &#39;exclude&#39;, not both.&quot;</span><span class="p">)</span>
        <span class="n">n_displaced</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="n">displaced_indices</span><span class="p">)</span>
        <span class="k">if</span> <span class="n">n_displaced</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
            <span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span>