class_docstr: This class represents a hyperparameter.
class_docstr_tok: ["This","class","represents","a","hyperparameter","."]
code: def createHyperparameterConfigForHyperoptDomain(domain):
      if domain.name is None:
          data = {"type": "object", "properties": {}}
  
          for key in domain.params:
              data["properties"][
                  key
              ] = Hyperparameter.createHyperparameterConfigForHyperoptDomain(
                  domain.params[key]
              )
  
              if "name" not in data["properties"][key]:
                  data["properties"][key]["name"] = key
  
          return data
      elif domain.name == "dict":
          data = {"type": "object", "properties": {}}
  
          for item in domain.named_args:
              data["properties"][
                  item[0]
              ] = Hyperparameter.createHyperparameterConfigForHyperoptDomain(
                  item[1]
              )
  
          return data
      elif domain.name == "switch":
          data = {"oneOf": []}
  
          data["name"] = domain.pos_args[0].pos_args
  
          for item in domain.pos_args[1:]:
              data["oneOf"].append(
                  Hyperparameter.createHyperparameterConfigForHyperoptDomain(
                      item
                  )
              )
          return data
      elif domain.name == "hyperopt_param":
          data = Hyperparameter.createHyperparameterConfigForHyperoptDomain(
              domain.pos_args[1]
          )
          data["name"] = domain.pos_args[0]._obj
          return data
      elif domain.name == "uniform":
          data = {"type": "number"}
          data["scaling"] = "linear"
          data["mode"] = "uniform"
          data["min"] = domain.pos_args[0]._obj
          data["max"] = domain.pos_args[1]._obj
          return data
      elif domain.name == "quniform":
          data = {"type": "number"}
          data["scaling"] = "linear"
          data["mode"] = "uniform"
          data["min"] = domain.pos_args[0]._obj
          data["max"] = domain.pos_args[1]._obj
          data["rounding"] = domain.pos_args[2]._obj
          return data
      elif domain.name == "loguniform":
          data = {"type": "number"}
          data["scaling"] = "logarithmic"
          data["mode"] = "uniform"
          data["min"] = math.exp(domain.pos_args[0]._obj)
          data["max"] = math.exp(domain.pos_args[1]._obj)
          return data
      elif domain.name == "qloguniform":
          data = {"type": "number"}
          data["scaling"] = "logarithmic"
          data["mode"] = "uniform"
          data["min"] = math.exp(domain.pos_args[0]._obj)
          data["max"] = math.exp(domain.pos_args[1]._obj)
          data["rounding"] = domain.pos_args[2]._obj
          return data
      elif domain.name == "normal":
          data = {"type": "number"}
          data["scaling"] = "linear"
          data["mode"] = "normal"
          data["mean"] = domain.pos_args[0]._obj
          data["stddev"] = domain.pos_args[1]._obj
          return data
      elif domain.name == "qnormal":
          data = {"type": "number"}
          data["scaling"] = "linear"
          data["mode"] = "normal"
          data["mean"] = domain.pos_args[0]._obj
          data["stddev"] = domain.pos_args[1]._obj
          data["rounding"] = domain.pos_args[2]._obj
          return data
      elif domain.name == "lognormal":
          data = {"type": "number"}
          data["scaling"] = "logarithmic"
          data["mode"] = "normal"
          data["mean"] = domain.pos_args[0]._obj
          data["stddev"] = domain.pos_args[1]._obj
          return data
      elif domain.name == "qlognormal":
          data = {"type": "number"}
          data["scaling"] = "logarithmic"
          data["mode"] = "normal"
          data["mean"] = domain.pos_args[0]._obj
          data["stddev"] = domain.pos_args[1]._obj
          data["rounding"] = domain.pos_args[2]._obj
          return data
      elif domain.name == "literal":
          data = {"type": "string", "constant": domain._obj}
          return data
      elif domain.name == "randint":
          data = {"type": "number"}
          max = domain.pos_args[0]._obj
          data["max"] = max
          data["mode"] = "randint"
          return data
      else:
          raise ValueError(
              f"Unsupported hyperopt domain type {domain.name}"
          )
  
file_path: hypermax/hypermax/hyperparameter.py
imports: from hyperopt import hp
  import math
  from pprint import pprint
  import re
label_desc: Use image node_id 8 for calling the Hyperparameter obj's underlying member method code with example usage: obj.createHyperparameterConfigForHyperoptDomain(domain) and returns: data, data, data, data, data, data, data, data, data, data, data, data, data, data