code: def convert_vizier_trial_to_hps(
      hps: hp_module.HyperParameters, vizier_trial: Dict[Text, Any]
  ) -> hp_module.HyperParameters:
      """Converts Vizier Trial parameters into KerasTuner HyperParameters.
  
      Args:
          hps: Sample KerasTuner HyperParameters object for config initialization
          vizier_trial: A Vizier Trial instance.
  
      Returns:
          A KerasTuner HyperParameters object that holds the Vizier Trial
          parameters.
      """
      hps = hp_module.HyperParameters.from_config(hps.get_config())
      hps.values = convert_vizier_trial_to_dict(vizier_trial)
      return hps
  
imports: from typing import Any, Dict, List, Optional, Text, Union
  from keras_tuner.engine import hyperparameters
  from keras_tuner.engine import metrics_tracking
  from keras_tuner.engine import oracle
  from keras_tuner.engine import trial
  import numpy
  from tensorboard.plugins.hparams import api
label_desc: Use image node_id 12 for calling a global function with example usage: convert_vizier_trial_to_hps(hps, vizier_trial) and returns: hps