an class="o">=</span> <span class="n">TensorSlicer</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">mp_group</span><span class="p">)</span>

        <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">custom_policies</span><span class="p">,</span> <span class="n">Iterable</span><span class="p">):</span>
            <span class="bp">self</span><span class="o">.</span><span class="n">policies</span> <span class="o