code: def _find_n_levels(dimensions: int) -> int:
      levels = dimensions - 1
      while True:
          if _is_prime(levels):
              return levels
          else:
              levels = levels + 1
  
file_path: orion/src/orion/algo/mofa/sampler.py
imports: from __future__ import annotations
  import logging
  import numpy
  from numpy.random import RandomState
  from scipy.stats.qmc import LatinHypercube
  from orion.algo.space import Space
label_desc: Use image node_id 2 for calling a global function with example usage: _find_n_levels(dimensions) and returns: levels