code: def test_get_remote_training_metrics(self, mock_super_tuner):
      remote_tuner = self._remote_tuner(
          None, None, self._study_config, max_trials=10
      )
  
      remote_tuner.directory = self.get_temp_dir()
      log_dir = os.path.join(
          remote_tuner.directory, str(self._test_trial.trial_id), "logs"
      )
  
      with tf.summary.create_file_writer(log_dir).as_default():
          tf.summary.scalar(name="epoch_loss", data=0.1, step=0)
          tf.summary.scalar(name="epoch_accuracy", data=0.2, step=0)
          tf.summary.scalar(name="epoch_loss", data=0.3, step=1)
          tf.summary.scalar(name="epoch_accuracy", data=0.4, step=1)
          tf.summary.scalar(name="epoch_loss", data=0.5, step=2)
          tf.summary.scalar(name="epoch_accuracy", data=0.6, step=2)
  
      log_reader = tf_utils.get_tensorboard_log_watcher_from_path(
          log_dir
      )
      results = remote_tuner._get_remote_training_metrics(
          log_reader, {}
      )
  
      self.assertLen(results.completed_epoch_metrics, 2)
      self.assertIn("accuracy", results.completed_epoch_metrics[0])
      self.assertIn("loss", results.completed_epoch_metrics[0])
      self.assertEqual(
          results.completed_epoch_metrics[0].get("loss"),
          tf.constant(0.1),
      )
  
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 31 for calling the CloudTunerTest obj's underlying member method code with example usage: obj.test_get_remote_training_metrics(mock_super_tuner) without return types