code: def test_remote_run_trial_with_successful_job(
      self,
      mock_tf_io,
      mock_log_watcher,
      mock_is_running,
      mock_super_tuner,
      mock_job_status,
      mock_cloud_fit,
  ):
      remote_tuner = self._remote_tuner(
          None, None, self._study_config, max_trials=10
      )
  
      mock_is_running.side_effect = [True, False]
  
      remote_dir = os.path.join(
          remote_tuner.directory, str(self._test_trial.trial_id)
      )
      mock_job_status.return_value = True
      remote_tuner._get_remote_training_metrics = mock.Mock()
      remote_tuner._get_remote_training_metrics.return_value = (
          tuner._TrainingMetrics([{"loss": 0.001}], {})
      )
      remote_tuner.oracle = mock.Mock()
      remote_tuner.oracle.update_trial = mock.Mock()
      remote_tuner.hypermodel = mock.Mock()
      remote_tuner.run_trial(
          self._test_trial,
          "fit_arg",
          callbacks=["test_call_back"],
          fit_kwarg=1,
      )
  
      self.assertEqual(2, remote_tuner.oracle.update_trial.call_count)
      mock_cloud_fit.assert_called_with(
          "fit_arg",
          fit_kwarg=1,
          model=mock.ANY,
          callbacks=["test_call_back", mock.ANY, mock.ANY],
          remote_dir=remote_dir,
          job_spec=mock.ANY,
          region=self._region,
          project_id=self._project_id,
          image_uri=self._container_uri,
          job_id=self._job_id,
      )
  
      train_log_path = os.path.join(
          remote_tuner._get_tensorboard_log_dir(
              self._test_trial.trial_id
          ),
          "train",
      )
      mock_log_watcher.assert_called_with(train_log_path)
      self.assertEqual(
          2, remote_tuner._get_remote_training_metrics.call_count
      )
      mock_tf_io.assert_called_with(train_log_path)
  
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 28 for calling the CloudTunerTest obj's underlying member method code with example usage: obj.test_remote_run_trial_with_successful_job(mock_tf_io, mock_log_watcher, mock_is_running, mock_super_tuner, mock_job_status, mock_cloud_fit) without return types