class_docstr: Container for both a hyperparameter space, and current values.
  
  A `HyperParameters` instance can be pass to `HyperModel.build(hp)` as an
  argument to build a model.
  
  To prevent the users from depending on inactive hyperparameter values, only
  active hyperparameters should have values in `HyperParameters.values`.
  
  Attributes:
      space: A list of `HyperParameter` objects.
      values: A dict mapping hyperparameter names to current values.
docstr: Checks if a hyperparameter is currently active for a `Trial`.
  
  A hyperparameter is considered active if and only if all its parent
  conditions are active, and not affected by whether the hyperparameter
  is used while building the model. The function is usually called by the
  `Oracle` for populating new hyperparameter values and updating the trial
  after receiving the evaluation results.
  
  Args:
      hp: A string or `HyperParameter` instance. If string, checks whether
          any hyperparameter with that name is active. If `HyperParameter`
          instance, checks whether the object is active.
  
  Returns:
      A boolean, whether the hyperparameter is active.
docstr_tok: ["Checks","if","a","hyperparameter","is","currently","active","for","a","`","Trial","`",".","A","hyperparameter","is","considered","active","if","and","only","if","all","its","parent","conditions","are","active",",","and","not","affected","by","whether","the","hyperparameter","is","used","while","building","the","model",".","The","function","is","usually","called","by","the","`","Oracle","`","for","populating","new","hyperparameter","values","and","updating","the","trial","after","receiving","the","evaluation","results",".","Args",":","hp",":","A","string","or","`","HyperParameter","`","instance",".","If","string",",","checks","whether","any","hyperparameter","with","that","name","is","active",".","If","`","HyperParameter","`","instance",",","checks","whether","the","object","is","active",".","Returns",":","A","boolean",",","whether","the","hyperparameter","is","active","."]
code: def is_active(self, hyperparameter):
      """Checks if a hyperparameter is currently active for a `Trial`.
  
      A hyperparameter is considered active if and only if all its parent
      conditions are active, and not affected by whether the hyperparameter
      is used while building the model. The function is usually called by the
      `Oracle` for populating new hyperparameter values and updating the trial
      after receiving the evaluation results.
  
      Args:
          hp: A string or `HyperParameter` instance. If string, checks whether
              any hyperparameter with that name is active. If `HyperParameter`
              instance, checks whether the object is active.
  
      Returns:
          A boolean, whether the hyperparameter is active.
      """
      hp = hyperparameter
      if isinstance(hp, hp_module.HyperParameter):
          return self._conditions_are_active(hp.conditions)
      hp_name = str(hp)
      return any(
          self._conditions_are_active(temp_hp.conditions)
          for temp_hp in self._hps[hp_name]
      )
  
imports: import collections
  import contextlib
  import copy
  import six
  from keras_tuner import protos
  from keras_tuner.api_export import keras_tuner_export
  from keras_tuner.engine import conditions
  from keras_tuner.engine.hyperparameters import hp_types
  from keras_tuner.engine.hyperparameters import hyperparameter
label_desc: Use image node_id 4 for calling the HyperParameters obj's underlying member method code with example usage: obj.is_active(hyperparameter) and returns: any, self