class_docstr: Convert an Orion space into a configspace
docstr: Convert a real dimension into a configspace equivalent
docstr_tok: ["Convert","a","real","dimension","into","a","configspace","equivalent"]
code: def real(self, dim: Real) -> FloatHyperparameter:
      """Convert a real dimension into a configspace equivalent"""
      if dim.prior_name in ("reciprocal", "uniform"):
          lower, upper = dim.interval()
  
          return UniformFloatHyperparameter(
              name=dim.name,
              lower=lower,
              upper=upper,
              default_value=dim.default_value,
              q=_qantization(dim),
              log=dim.prior_name == "reciprocal",
          )
  
      if dim.prior_name in ("normal", "norm"):
          a, b = normalize_args(dim, dim.prior)
  
          kwargs = dict(
              name=dim.name,
              mu=a,
              sigma=b,
              default_value=dim.default_value,
              q=_qantization(dim),
              log=False,
              lower=dim.low if hasattr(dim, "low") else None,
              upper=dim.high if hasattr(dim, "high") else None,
          )
  
          return NormalFloatHyperparameter(**kwargs)
  
      raise UnsupportedPrior(
          f'Prior "{dim.prior_name}" is not supported'
      )
  
imports: from __future__ import annotations
  from copy import deepcopy
  from functools import singledispatch
  from math import log10
  from orion.algo.space import Categorical, Dimension, Fidelity, Integer, Real, Space, SpaceConverter, to_orionspace
label_desc: Use image node_id 3 for calling the ToConfigSpace obj's underlying member method code with example usage: obj.real(dim) and returns: UniformFloatHyperparameter, NormalFloatHyperparameter