code: def configspace_to_orionspace(cspace: ConfigurationSpace) -> Space:
      """Convert from orion space to configspace
  
      Notes
      -----
      ``ConfigurationSpace`` will set default values for each dimensions of ``Space``
  
      """
      space = Space()
  
      for cdim in cspace.get_hyperparameters_dict().values():
          odim = to_oriondim(cdim)
          space.register(odim)
  
      return space
  
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 9 for calling a global function with example usage: configspace_to_orionspace(cspace) and returns: space