 dimensions:&quot;</span><span class="p">,</span> <span class="n">n_dim</span><span class="p">)</span>

            <span class="k">return</span> <span class="n">n_dim</span>

        <span class="n">n_dim</span> <span class="o">+=</span> <span class="mi">1</span>

    <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;No level of dimensionality reaches threshold variance level </span><span class="si">%.3f</span><span class="s2">&quot;</span>
          <span class="o">%</span> <span