docstr: Simple example for a compute function
  The loss is just a the config + some noise (that decreases with the budget)
  
  For dramatization, the function can sleep for a given interval to emphasizes
  the speed ups achievable with parallel workers.
  
  Args:
      config: dictionary containing the sampled configurations by the optimizer
      budget: (float) amount of time/epochs/etc. the model can use to train
  
  Returns:
      dictionary with mandatory fields:
          'loss' (scalar)
          'info' (dict)
code: def compute(self, config, budget, **kwargs):
      """
      Simple example for a compute function
      The loss is just a the config + some noise (that decreases with the budget)
  
      For dramatization, the function can sleep for a given interval to emphasizes
      the speed ups achievable with parallel workers.
  
      Args:
          config: dictionary containing the sampled configurations by the optimizer
          budget: (float) amount of time/epochs/etc. the model can use to train
  
      Returns:
          dictionary with mandatory fields:
              'loss' (scalar)
              'info' (dict)
      """
  
      res = numpy.clip(
          config["x"] + numpy.random.randn() / budget,
          config["x"] / 2,
          1.5 * config["x"],
      )
      time.sleep(self.sleep_interval)
  
      return {
          "loss": float(
              res
          ),  # this is the a mandatory field to run hyperband
          "info": res,  # can be used for any user-defined information - also mandatory
      }
  
file_path: HpBandSter/hpbandster/examples/commons.py
imports: import numpy
  import time
  import ConfigSpace
  from hpbandster.core.worker import Worker
label_desc: Use image node_id 2 for calling the MyWorker obj's underlying member method code with example usage: obj.compute(config, budget) and returns: dict