 <span class="c1"># &lt;dataset base dir&gt;/&lt;class1&gt;/subfolder2/sample4.jpg</span>
        <span class="c1"># &lt;dataset base dir&gt;/&lt;class2&gt;/...</span>
        <span class="c1"># &lt;dataset base dir&gt;/&lt;class3&gt;/...</span>
        <span class="c1">#</span>
        <span class="c1"># This will recursively return all sample files under &lt;dataset base dir&gt;/&lt;class x&gt;</span>
        <span class="n">class_base_dir</span> <span class="o">=</span> <span class="sa">f</span><span cla