><span class="p">],</span>
            <span class="p">)</span>
        <span class="k">if</span> <span class="n">palette</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span> <span class="ow">and</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">palette</span><span class="p">,</span> <span class="n">Palette</span><span class="p">):</span>
            <span class="n">palette</span> <span class="o">=</span> <span 