</span> <span class="p">[</span> <span class="p">(</span><span class="n">cp</span><span class="p">,</span> <span class="n">metric</span><span class="p">)</span> <span class="k">for</span> <span class="p">(</span><span class="n">cp</span><span class="p">,</span> <span class="n">metric</span><span class="p">)</span> <span class="ow">in</span> <span class="n">checkpoint_paths</span> <span class="k">if</span> <span class="ow">not</span> <span class="n">is_nan</span><span class="p">(</span><span class="n">metric