,</span> <span class="nb">len</span><span class="p">(</span><span class="n">paths</span><span class="p">))</span>
            <span class="n">sample_paths</span><span class="p">[</span><span class="n">clazz</span><span class="p">]</span> <span class="o">=</span> <span class="n">paths</span><span class="p">[:</span><span class="n">max_len</span><span class="p">]</span>

    <span class="c1"># If the API was provided with a "class_counts" dictionary,</span>
    <span class="c1"># then we want to populate the 