ptor_shape</span><span class="p">:</span>
                    <span class="k">return</span> <span class="kc">True</span>
            <span class="k">return</span> <span class="kc">False</span>

        <span class="k">if</span> <span class="n">is_variable</span><span class="p">(</span><span class="n">inp</span><span class="p">):</span>
            <span class="n">derivatives_shape</span> <span class="o">=</span> <span class="kc">None</span>
            <span class="n">descriptor_shape</span> <span class="o"