code: def _from_normal(dim: Hyperparameter) -> Integer | Real:
      """Builds a normal dimension from a normal hyperparameter"""
  
      klass = Integer
      args = []
      kwargs = dict(
          # NOTE: Config space always has a config value
          # so orion-space would get it as well
          default_value=dim.default_value
      )
  
      if isinstance(dim, NormalFloatHyperparameter):
          klass = Real
      else:
          kwargs["precision"] = int(-log10(dim.q)) if dim.q else 4
  
      dist = "norm"
      args.append(dim.mu)
      args.append(dim.sigma)
  
      if dim.lower:
          kwargs["low"] = dim.lower
          kwargs["high"] = dim.upper
  
      return klass(dim.name, dist, *args, **kwargs)
  
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 8 for calling a global function with example usage: _from_normal(dim) and returns: klass