pan><span class="p">))</span>
    <span class="c1"># If a checkpoint is provided, load pretrained model</span>
    <span class="k">if</span> <span class="ow">not</span> <span class="n">prepared</span> <span class="ow">and</span> <span class="n">config</span><span class="o">.</span><span class="n">checkpoint_path</span> <span class="ow">is</span> <span class="ow">not</span> <span class="s1">&#39;&#39;</span><span class="p">:</span>
        <span class="n">model</span> <span class="o">=</span> <span class="n"