pan><span class="o">.</span><span class="n">save</span><span class="p">)</span>
        <span class="k">return</span> <span class="p">{</span>
            <span class="s1">&#39;idx&#39;</span><span class="p">:</span> <span class="n">batch</span><span class="p">[</span><span class="s1">&#39;idx&#39;</span><span class="p">],</span>
            <span class="o">**</span><span class="n">output</span><span class="p">[</span><span class="s1">&#39;metrics&#39;</span><span class="p">],</span>
        <span class="p"