t</span><span class="p">:</span> <span class="nb">list</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">list</span><span class="p">:</span>
    <span class="sd">&quot;&quot;&quot;</span>
<span class="sd">    [1, 1, 1, 2, 2, 3, 3, 3, 4] -&gt; [[0, 1, 2], [3, 4], [5, 6, 7], [8]]</span>
<span class="sd">    Parameters</span>
<span class="sd">    ----------</span>
<span class="sd">    input_list</span>

<span class="sd">    Returns</span>
<span class="sd">    -------</span>
<span cla