class_docstr: Adapter for the HEBO algorithm from https://github.com/huawei-noah/HEBO
  
  Parameters
  ----------
  :param space: Optimisation space with priors for each dimension.
  :param seed: Base seed for the random number generators. Defaults to `None`, in which case the
  randomness is not seeded.
  :param parameters: Parameters for the HEBO algorithm.
docstr: Fix any issues with the trials from Orion so they fit the `self.hebo_space`.
docstr_tok: ["Fix","any","issues","with","the","trials","from","Orion","so","they","fit","the","`","self.hebo_space","`","."]
code: def _orion_params_to_hebo_params(self, orion_params: dict) -> dict:
      """Fix any issues with the trials from Orion so they fit the `self.hebo_space`."""
      assert self.hebo_space is not None
  
      # NOTE: Remove the extra stuff (e.g. Fidelity dimension), before passing it to the
      # model. It's just a precaution, since the Hebo model probably fetches data using
      # the keys of its space, which doesn't have the Fidelity dimension anyway.
  
      params = {}
      for name, value in orion_params.items():
          orion_dim: Dimension = self.space[name]
          if orion_dim.type == "fidelity":
              continue
          from hebo.design_space.categorical_param import (
              CategoricalPara,
          )
  
          hebo_dim: Parameter = self.hebo_space.paras[name]
  
          if isinstance(hebo_dim, CategoricalPara):
              if (
                  value not in hebo_dim.categories
                  and str(value) in hebo_dim.categories
              ):
                  value = str(value)
              assert value in hebo_dim.categories, (
                  value,
                  hebo_dim.categories,
              )
  
          params[name] = value
  
      return params
  
imports: from __future__ import annotations
  import copy
  import typing
  import warnings
  from dataclasses import dataclass
  from logging import getLogger
  from typing import Any, ClassVar, Literal
  import numpy
  import pandas
  from typing_extensions import TypedDict
  from orion.algo.base import BaseAlgorithm
  from orion.algo.space import Dimension, Fidelity, Space
  from orion.core.utils.format_trials import dict_to_trial
  from orion.core.utils.module_import import ImportOptional
  from orion.core.utils.random_state import RandomState, control_randomness
  from orion.core.worker.transformer import TransformedDimension
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 8 for calling the HEBO obj's underlying member method code with example usage: obj._orion_params_to_hebo_params(orion_params) and returns: params