span class="n">snr</span> <span class="o">=</span> <span class="n">lensed_param</span><span class="p">[</span><span class="s2">&quot;optimal_snr_net&quot;</span><span class="p">]</span>
    <span class="n">image_type</span> <span class="o">=</span> <span class="n">lensed_param</span><span class="p">[</span><span class="s2">&quot;image_type&quot;</span><span class="p">]</span>

    <span class="c1"># pair images wrt to image_type</span>
    <span class="k">if</span> <span class="n">classification_type</span>