</span><span class="p">,</span> <span class="s2">&quot;auto&quot;</span><span class="p">}</span>
        <span class="k">if</span> <span class="n">method</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">methods</span><span class="p">:</span>
            <span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span>
                <span class="s2">&quot;Invalid method specified. Please choose from: </span><span class="si">{}</span><span class="s2">&quot;