code: def test_unsupported_sample_weights_arg_tfdata(self):
      with self.assertRaisesRegex(
          ValueError, "`sample_weights` should not be passed"
      ):
          x = tf.data.Dataset.from_tensor_slices(
              np.random.random((100, 16))
          )
          sample_weights = np.random.random((100,))
          _ = epoch_iterator.EpochIterator(
              x=x, sample_weight=sample_weights
          )
  
imports: import numpy
  import pytest
  import tensorflow
  from keras import backend
  from keras import testing
  from keras.trainers import data_adapters
  from keras.trainers import epoch_iterator
label_desc: Use image node_id 6 for calling the TestEpochIterator obj's underlying member method code with example usage: obj.test_unsupported_sample_weights_arg_tfdata() without return types