class_docstr: A Minin object to add hpo related methods to models.
  
  It is used to add hpo related search methods onto
  tf.keras.Sequential, tf.keras.Model, as well as custom
      model subclassing from tf.keras.Model.
class_docstr_tok: ["A","Minin","object","to","add","hpo","related","methods","to","models",".","It","is","used","to","add","hpo","related","search","methods","onto","tf.keras.Sequential",",","tf.keras.Model",",","as","well","as","custom","model","subclassing","from","tf.keras.Model","."]
code: def _model_build(self, trial):
      # for lazy model build
      # build model based on searched hyperparams from trial
      # TODO may add data creator here, e.g. refresh data, reset generators, etc.
      # super().__init__(**self._model_init_args(trial))
      # self._model_compile(super(), trial)
      # use composition instead of inherited
      # modelcls = self.__class__.__bases__[1]
      modelcls = self.model_class
      model = modelcls(**self._model_init_args(trial))
      # model = tf.keras.Model(**self._model_init_args(trial))
      self._model_compile(model, trial)
      return model
  
imports: import copy
  import warnings
  from .objective import Objective
  from bigdl.nano.automl.hpo.backend import create_hpo_backend
  from bigdl.nano.automl.hpo.search import _search_summary, _end_search, _create_study, _validate_args, _strip_val_prefix, _prepare_args
  from bigdl.nano.automl.hpo.space import AutoObject
  from bigdl.nano.utils.common import invalidInputError
  from bigdl.nano.automl.utils.parallel import run_parallel
  import math
label_desc: Use image node_id 17 for calling the HPOMixin obj's underlying member method code with example usage: obj._model_build(trial) and returns: model