code: def _check_reset_and_type_change(self, name, orig_ctr):
      
      # Resetting a hyperparameter
      if name in orig_ctr:
        tf.logging.warning("Overwriting hparam %s", name)
  
      ctr_names = [
          (self._categorical_params, "categorical"),
          (self._discrete_params, "discrete"),
          (self._float_params, "float"),
          (self._int_params, "int"),
      ]
      ctrs, names = list(zip(*ctr_names))
      orig_name = names[ctrs.index(orig_ctr)]
  
      for ctr, ctr_name in ctr_names:
        if ctr is orig_ctr:
          continue
  
        # Using a different type for the same hyperparameter name
        if name in ctr:
          raise ValueError("Setting hyperparameter %s as type %s, but a "
                           "hyperparemeter of the same name was originally "
                           "registered as type %s" % (name, ctr_name, orig_name))
docs: Check if name is in orig_ctr or in one of the other type containers.