code: def test_invalid_dataset_type(self):
      with self.assertRaisesRegex(
          ValueError,
          "Expected argument `dataset` to be a tf.data.Dataset",
      ):
          invalid_data = "This is not a tf.data.Dataset"
          tf_dataset_adapter.TFDatasetAdapter(invalid_data)
  
file_path: keras/keras/trainers/data_adapters/tf_dataset_adapter_test.py
imports: from unittest import mock
  import numpy
  import tensorflow
  from keras import testing
  from keras.trainers.data_adapters import tf_dataset_adapter
label_desc: Use image node_id 6 for calling the TestTFDatasetAdapter obj's underlying member method code with example usage: obj.test_invalid_dataset_type() without return types