class_docstr: Generates prior towers for Replay in Phoenix.
docstr: Creates the prior for the ensemble.
code: def first_time_chief_generate(
      self,
      input_layer_fn,
      trial_mode,
      logits_dimension,
      hparams,
      run_config,
      is_training,
      trials,
  ):
      """Creates the prior for the ensemble."""
      del input_layer_fn
      my_id = architecture_utils.DirectoryHandler.get_trial_id(
          run_config.model_dir, self._phoenix_spec
      )
  
      # Adaptive ensemble - build gradually, import last trial in replay.
      if trial_utils.adaptive_or_residual_ensemble(self._phoenix_spec):
          previous_model_dir = os.path.join(
              os.path.dirname(run_config.model_dir), str(int(my_id) - 1)
          )
          return trial_utils.import_towers_one_trial(
              phoenix_spec=self._phoenix_spec,
              is_training=is_training,
              logits_dimension=logits_dimension,
              prev_model_dir=previous_model_dir,
              force_freeze=self._force_freeze,
              allow_auxiliary_head=self._allow_auxiliary_head,
              caller_generator=self.generator_name(),
              my_model_dir=run_config.model_dir,
          )
  
      # Non adaptive - import all towers after all are trained.
      if trial_utils.non_adaptive_or_intermixed_ensemble(
          self._phoenix_spec
      ):
          previous_model_dirs = [
              os.path.join(
                  os.path.dirname(run_config.model_dir), str(i + 1)
              )
              for i in range(my_id - 1)
          ]
          return trial_utils.import_towers_multiple_trials(
              phoenix_spec=self._phoenix_spec,
              is_training=is_training,
              logits_dimension=logits_dimension,
              previous_model_dirs=previous_model_dirs,
              force_freeze=self._force_freeze,
              allow_auxiliary_head=self._allow_auxiliary_head,
              caller_generator=self.generator_name(),
              my_model_dir=run_config.model_dir,
          )
  
file_path: model_search/model_search/generators/replay_generator.py
imports: import os
  from model_search.architecture import architecture_utils
  from model_search.generators import base_tower_generator
  from model_search.generators import trial_utils
label_desc: Use image node_id 3 for calling the ReplayGenerator obj's underlying member method code with example usage: obj.first_time_chief_generate(input_layer_fn, trial_mode, logits_dimension, hparams, run_config, is_training, trials) and returns: trial_utils, trial_utils