code: def to_configspace(space: Space) -> ConfigurationSpace:
      """Convert orion space to configspace
  
      Notes
      -----
      ``ConfigurationSpace`` will set its own default values
      if not set inside ``Space``
  
      """
      conversion = ToConfigSpace()
      return conversion.space(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 4 for calling a global function with example usage: to_configspace(space) and returns: conversion