span class="p">[:</span><span class="n">max_len</span><span class="p">]</span>

        <span class="n">sample_paths</span><span class="p">[</span><span class="n">class_label</span><span class="p">]</span> <span class="o">=</span> <span class="n">filenames</span>

    <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">sample_paths</span><span class="p">)</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
        <span class="k">raise<