docstr: Wrap the Worker's get_configspace() function for HpBandSter interface
docstr_tok: ["Wrap","the","Worker","'s","get_configspace","(",")","function","for","HpBandSter","interface"]
code: def create_configspace(parameter_config):
      """
      Wrap the Worker's get_configspace() function for HpBandSter interface
      """
      cs = CS.ConfigurationSpace()
      params = []
      for config in parameter_config:
          p = AbstractProposer.parse_param_config(config)
          if p["type"] == "choice":
              param = CS.CategoricalHyperparameter(
                  p["name"], choices=p["range"]
              )
          else:  # for int or float
              param = dict(name=p["name"])
              param["lower"], param["upper"] = min(p["range"]), max(
                  p["range"]
              )
              if p["type"] == "int":
                  param = CS.UniformIntegerHyperparameter(**param)
              else:
                  param = CS.UniformFloatHyperparameter(**param)
          params.append(param)
      cs.add_hyperparameters(params)
      return cs
  
imports: import logging
  import numpy
  from six.moves import input
  from six import PY3
  from .AbstractProposer import AbstractProposer
  from .None import ProposerStatus
  from ..utils import set_default_keyvalue
  from .hpbandster.optimizers.bohb import BOHB
  from .hpbandster.optimizers.iterations import SuccessiveHalving
  import ConfigSpace
  from hpbandster.optimizers.config_generators.bohb import BOHB
  from hpbandster.core.dispatcher import Job
label_desc: Use image node_id 7 for calling the BOHBProposer obj's underlying member method code with example usage: obj.create_configspace(parameter_config) and returns: cs