code: def register(dimension_type: str, prior: str):
      """Register a conversion function for the given type and prior."""
  
      def deco(func):
          registry[dimension_type, prior] = func
          return func
  
      return deco
  
imports: from __future__ import annotations
  import logging
  import pickle
  from typing import Callable, Iterable, Sequence, SupportsInt
  from orion.algo.base import BaseAlgorithm
  from orion.algo.space import Categorical, Dimension, Fidelity, Integer, Real, Space
  from orion.core.utils.format_trials import dict_to_trial
  from orion.core.utils.module_import import ImportOptional
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 1 for calling a global function with example usage: register(dimension_type, prior) and returns: deco, func