span class="s1">&#39;result.json&#39;</span><span class="p">),</span> <span class="n">lines</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
    <span class="n">df_metrics</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">json_normalize</span><span class="p">(</span><span class="n">df_metrics</span><span class="p">[</span><span class="s2">&quot;sampler_results&quot;</span><span class="p">])</span>

    <span class="k">def</span