class="p">(</span><span class="n">bar</span><span class="p">,</span> <span class="s1">&#39;yellow&#39;</span><span class="p">))</span>

    <span class="c1"># If training, concatenate all datasets into a single one</span>
    <span class="k">if</span> <span class="n">mode</span> <span class="o">==</span> <span class="s1">&#39;train&#39;</span><span class="p">:</span>
        <span class="n">datasets</span> <span class="o">=</span> <span class="p">[</span><span class="n">ConcatDataset</span><span class="p">(