given dictionary.</span>
    <span class="c1"># Otherwise, just populate a dummy,local dictionary</span>
    <span class="k">if</span> <span class="n">class_counts</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
        <span class="n">class_counts</span> <span class="o">=</span> <span class="p">{}</span>
    <span class="n">class_counts</span><span class="o">.</span><span class="n">update</span><span class="p">({</span><span class="n">key</span><span class="p">:</span