class_docstr: Convert an Orion space into a configspace
docstr: Convert orion space to configspace
docstr_tok: ["Convert","orion","space","to","configspace"]
code: def space(self, space: Space) -> ConfigurationSpace:
      """Convert orion space to configspace"""
      cspace = ConfigurationSpace()
      dims = []
  
      for _, dim in space.items():
          cdim = self.convert_dimension(dim)
  
          if cdim:
              dims.append(cdim)
  
      cspace.add_hyperparameters(dims)
      return cspace
  
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 7 for calling the ToConfigSpace obj's underlying member method code with example usage: obj.space(space) and returns: cspace