class="n">method</span><span class="o">=</span><span class="n">method</span><span class="p">,</span>
                <span class="n">attach</span><span class="o">=</span><span class="n">attach</span><span class="p">,</span>
                <span class="n">return_descriptor</span><span class="o">=</span><span class="n">return_descriptor</span><span class="p">,</span>
            <span class="p">)</span>

        <span class="c1"># Check input validity</span>
        <span class="n">n_samples</span> <span cla