al): a dictionary of modules being optimized.</span>
<span class="sd">            This is used to get the proper parameter names.</span>
<span class="sd">        optimizer_name (str, optional): name of the optimizer</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="k">if</span> <span class="n">models</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
        <span class="n">models</span> <span class="o">=</span> <span class="p">{}</span>
    <span cl