def METHOD_NAME(self, hp: Union[MutableMapping, Namespace, str]) -> None:
    hp = self._to_hparams_dict(hp)
    if isinstance(hp, dict) and isinstance(self.hparams, dict):
        self.hparams.update(hp)
    else:
        self._hparams = hp