class_docstr: Abstract condition for a conditional hyperparameter.
  
  Subclasses of this object can be passed to a `HyperParameter` to specify
  that this condition must be met for the hyperparameter to be active for the
  `Trial`.
class_docstr_tok: ["Abstract","condition","for","a","conditional","hyperparameter",".","Subclasses","of","this","object","can","be","passed","to","a","`","HyperParameter","`","to","specify","that","this","condition","must","be","met","for","the","hyperparameter","to","be","active","for","the","`","Trial","`","."]
code: def from_proto(cls, proto):
      kind = proto.WhichOneof("kind")
      if kind == "parent":
          parent = getattr(proto, kind)
          name = parent.name
          values = parent.values
          values = [getattr(v, v.WhichOneof("kind")) for v in values]
          return Parent(name=name, values=values)
      raise ValueError(f"Unrecognized condition of type: {kind}")
  
file_path: keras-tuner/keras_tuner/engine/conditions.py
imports: import abc
  import six
  from keras_tuner import protos
  from keras_tuner import utils
label_desc: Use image node_id 5 for calling the Condition obj's underlying member method code with example usage: obj.from_proto(cls, proto) and returns: Parent