
<span class="sd">            sparse (bool): Whether the output should be a sparse matrix or a</span>
<span class="sd">                dense numpy array.</span>
<span class="sd">        &quot;&quot;&quot;</span>
        <span class="c1"># Check that the given properties are valid</span>
        <span class="k">for</span> <span class="n">prop_name</span><span class="p">,</span> <span class="n">prop_grid</span> <span class="ow">in</span> <span class="n">properties</span><span class="o">.</span><span class="n"