class_docstr: Tf.keras.Sequential with HPO capabilities.
class_docstr_tok: ["Tf.keras.Sequential","with","HPO","capabilities","."]
code: def _model_init_args(self, trial):
      # for lazy model init
      # use backend to sample model init args
      # and construct the actual layers
      instantiated_layers = []
      for layer in self.lazylayers_:
          if isinstance(layer, AutoObject):
              newl = self.backend.instantiate(trial, layer)
          else:
              newl = copy.deepcopy(layer)
          instantiated_layers.append(newl)
      return {"layers": instantiated_layers, "name": self.name_}
  
file_path: BigDL/python/nano/src/bigdl/nano/automl/tf/keras/Sequential.py
imports: import tensorflow
  import copy
  from bigdl.nano.automl.utils import proxy_methods
  from bigdl.nano.automl.tf.mixin import HPOMixin
  from bigdl.nano.automl.hpo.space import AutoObject
label_desc: Use image node_id 3 for calling the Sequential obj's underlying member method code with example usage: obj._model_init_args(trial) and returns: dict