code: def to_oriondim(dim: Hyperparameter) -> Dimension:
      """Convert a config space hyperparameter to an orion dimension"""
      raise NotImplementedError(
          f"Dimension {dim} is not supported by Orion"
      )
  
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 5 for calling a global function with example usage: to_oriondim(dim) without return types