code: def __init__(self, name, type, values):
      self.name = name
      self.type = type
      for i, val in enumerate(values):
          if val is None:
              # the value None is allowed for every parameter type
              continue
          if self.type == "int_cat":
              values[i] = int(val)
          elif self.type == "float_cat":
              values[i] = float(val)
          elif self.type == "string":
              # this is necessary to avoid a bug in sklearn, which won't be
              # fixed until 0.20
              values[i] = str(newstr(val))
          elif self.type == "bool":
              values[i] = bool(val)
      self.values = values
  
imports: from __future__ import absolute_import, unicode_literals
  import json
  import os
  from builtins import object, range
  from builtins import str
  import btb
  from atm.constants import METHODS
label_desc: Use image node_id 1 to create a new Categorical object from inherited base classes: HyperParameter with example: obj = Categorical(name, type, values)