lass="sd">    Examples</span>
<span class="sd">    --------</span>
<span class="sd">    &gt;&gt;&gt;import deeprobust.image.netmodels.train_model as trainmodel</span>
<span class="sd">    &gt;&gt;&gt;trainmodel.train(&#39;CNN&#39;, &#39;MNIST&#39;, &#39;cuda&#39;, 20)</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="n">torch</span><span class="o">.</span><span class="n">manual_seed</span><span class="p">(</span><span class="n">seed</span><span class="p">)</span>

    <span class="n">t