span class="c1"># validation losses</span>
<span class="n">test_instance</span><span class="o">.</span><span class="n">extract_loss_metric_dict_from_history</span><span class="p">(</span><span class="n">history</span><span class="o">=</span><span class="n">tb</span><span class="o">.</span><span class="n">all_model</span><span class="o">.</span><span class="n">history</span><span class="p">,</span> <span class="n">structure</span> <span class="o">=</span> <span class="n">create_dict_from_nested_model</span><