 class="n">transform</span> <span class="o">=</span> <span class="n">create_transform</span><span class="p">(</span><span class="o">**</span><span class="n">config</span><span class="p">)</span>
    <span class="k">return</span> <span class="n">transform</span>

<span class="c1"># decode the results into ([predicted class, description], probability)</span>
<span class="k">def</span> <span class="nf">predict</span><span class="p">(</span><span class="n">img_path</span><span class="p">,</span> <span class="n"