class_docstr: Differential Evolution with HyperBand
  
  This class is a wrapper around the library DEHB:
  https://github.com/automl/DEHB.
  
  For more information on the algorithm,
  see original paper at https://arxiv.org/abs/2105.09821.
  
  Awad, Noor, Neeratyoy Mallik, and Frank Hutter. "Dehb: Evolutionary hyperband for scalable,
  robust and efficient hyperparameter optimization." arXiv preprint arXiv:2105.09821 (2021).
  
  Parameters
  ----------
  space: `orion.algo.space.Space`
      Optimisation space with priors for each dimension.
  
  seed: None, int or sequence of int
      Seed for the random number generator used to sample new trials.
      Default: ``None``
  
  mutation_factor: float
      Mutation probability
      Default: ``0.5``
  
  crossover_prob: float
      Crossover probability
      Default: ``0.5``
  
  mutation_strategy: str
      Mutation strategy rand1, rand2dir randtobest1 currenttobest1 best1 best2 rand2
      Default: ``'rand1'``
  
  crossover_strategy: str
      Crossover strategy bin or exp
      Default: ``'bin'``
  
  boundary_fix_type: str
      Boundary fix method, clip or random
      Default: ``'random'``
  
  min_clip: float
      Min clip when boundary fix method is clip
      Default: ``None``
  
  max_clip: float
      Max clip when boundary fix method is clip
      Default: ``None``
docstr: Convert a ConfigSpace sample into a trial
code: def sample_to_trial(
      self, sample: numpy.ndarray, fidelity: int
  ) -> Trial:
      """Convert a ConfigSpace sample into a trial"""
      config = self.dehb.vector_to_configspace(sample)
      hps = {}
  
      for k, v in self.space.items():
          if v.type == "fidelity":
              hps[k] = fidelity
  
          else:
              hps[k] = config[k]
  
      return format_trials.dict_to_trial(to_orion(hps), self.space)
  
imports: from __future__ import annotations
  import logging
  from collections import defaultdict
  from copy import deepcopy
  from typing import ClassVar, NamedTuple
  import numpy
  from orion.algo.base import BaseAlgorithm
  from orion.algo.dehb.brackets import SHBracketManager
  from orion.algo.space import Fidelity, Space
  from orion.core.utils import format_trials
  from orion.core.utils.module_import import ImportOptional
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 6 for calling the DEHB obj's underlying member method code with example usage: obj.sample_to_trial(sample, fidelity) and returns: format_trials