code: def from_hyper_parameter(self, hp, **kwargs):
      kw = deepcopy(self._kwargs)
      kw.update(kwargs)
      ret_self = self.__class__(
          self.input_dimension, self.output_dimension, self.device, **kw
      )
      hp_now = dict(self.hyper_parameters)
      hp_now.update(hp)
      ret_self.hyper_parameters = hp_now
      for key, value in self._registered_parameters.items():
          ret_self.register_parameter(key, value)
      ret_self.initialize()
      return ret_self
  
file_path: AutoGL/autogl/module/model/dgl/hetero/base.py
imports: from copy import deepcopy
  from ..base import BaseAutoModel
label_desc: Use image node_id 5 for calling the BaseHeteroModelMaintainer obj's underlying member method code with example usage: obj.from_hyper_parameter(hp) and returns: ret_self