r shape.</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="k">if</span> <span class="n">query_tokens</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
        <span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s1">&#39;Tokens should be provided&#39;</span><span class="p">)</span>

    <span class="k">if</span> <span class="n">key_tokens</span> <span class="ow">is</span> <span class="kc">None</span><sp