code: def __init__(
      self,
      benchmark,
      configspace=None,
      budget_name="budget",
      budget_preprocessor=None,
      measure_test_loss=False,
      config_as_array=True,
      **kwargs,
  ):
      super().__init__(**kwargs)
      self.benchmark = benchmark
  
      if configspace is None:
          self.configspace = benchmark.get_configuration_space()
      else:
          self.configspace = configspace
  
      self.budget_name = budget_name
  
      if budget_preprocessor is None:
          self.budget_preprocessor = lambda b: b
      else:
          self.budget_preprocessor = budget_preprocessor
  
      self.config_as_array = config_as_array
  
      self.measure_test_loss = measure_test_loss
  
imports: import ConfigSpace
  from hpbandster.core.worker import Worker
label_desc: Use image node_id 1 to create a new HPOlib2Worker object from inherited base classes: Worker with example: obj = HPOlib2Worker(benchmark, configspace, budget_name, budget_preprocessor, measure_test_loss, config_as_array)