lient</span><span class="p">.</span><span class="n">utils</span><span class="w"> </span><span class="k">import</span><span class="w"> </span><span class="n">triton_to_np_dtype</span><span class="w"></span>

<span class="cp"># preprocessing function</span>
<span class="n">def</span><span class="w"> </span><span class="n">rn50_preprocess</span><span class="p">(</span><span class="n">img_path</span><span class="o">=</span><span class="s">&quot;img1.jpg&quot;</span><span class="p">)</span><span class="o">:</spa