code: def test_update_trial(self, mock_super_update_trial):
      self._tuner_with_hparams()
  
      self.mock_client.should_trial_stop.return_value = True
  
      mock_time = mock.patch.object(time, "time", autospec=True).start()
      mock_time.return_value = 1000
  
      self.tuner.oracle._start_time = 10
      self.tuner.oracle.trials = {"1": self._test_trial}
      status = self.tuner.oracle.update_trial(
          trial_id="1", metrics={"val_acc": 0.8}, step=3
      )
  
      (
          self.mock_client.report_intermediate_objective_value.assert_called_once_with(
              3,  # step
              990,  # elapsed_secs
              [{"metric": "val_acc", "value": 0.8}],  # metrics_list
              "1",  # trial_id,
          )
      )
      self.mock_client.should_trial_stop.assert_called_once_with("1")
      self.assertEqual(status, trial_module.TrialStatus.STOPPED)
  
imports: import os
  import time
  from keras_tuner.engine import hypermodel
  from keras_tuner.engine import hyperparameters
  from keras_tuner.engine import oracle
  from keras_tuner.engine import trial
  from keras_tuner.engine import tuner
  import mock
  import tensorflow
  from tensorboard.plugins.hparams import api
  from tensorflow_cloud.core import deploy
  from tensorflow_cloud.core import machine_config
  from tensorflow_cloud.core import validate
  from tensorflow_cloud.tuner import cloud_fit_client
  from tensorflow_cloud.tuner import tuner
  from tensorflow_cloud.tuner.tuner import vizier_client
  from tensorflow_cloud.utils import google_api_client
  from tensorflow_cloud.utils import tf_utils
label_desc: Use image node_id 16 for calling the CloudTunerTest obj's underlying member method code with example usage: obj.test_update_trial(mock_super_update_trial) without return types