code: def test_add_logging_mismatched_dir(
      self, mock_hparams, mock_create_file_writer, mock_super_tuner
  ):
      remote_tuner = self._remote_tuner(None, None, self._study_config)
  
      callbacks = [
          tf.keras.callbacks.TensorBoard(
              log_dir=os.path.join(remote_tuner.directory, "logs")
          )
      ]
  
      with self.assertRaisesRegex(
          ValueError,
          "log_dir in TensorBoard callback should be "
          "gs://remote_dir, but was gs://remote_dir/logs",
      ):
          remote_tuner._add_logging(callbacks, self._test_trial)
  
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 26 for calling the CloudTunerTest obj's underlying member method code with example usage: obj.test_add_logging_mismatched_dir(mock_hparams, mock_create_file_writer, mock_super_tuner) without return types