code: def _cdf_inverse(x, spec):
      # inverse function of spec's cumulative distribution function
      if spec.normal_distributed:
          return spec.mu + spec.sigma * math.sqrt(2) * erfinv(2 * x - 1)
      else:
          return spec.low + (spec.high - spec.low) * x
  
imports: import logging
  import math
  import numpy
  from scipy.special import erfinv
  import nni
  from nni.common.hpo_utils import ParameterSpec, deformat_parameters, format_search_space
  from nni.tuner import Tuner
label_desc: Use image node_id 2 for calling a global function with example usage: _cdf_inverse(x, spec) and returns: unknown, unknown