code: def test_tf_data_compatibility(self):
      layer = layers.RandomBrightness(factor=0.5, seed=1337)
      input_data = np.random.random((2, 8, 8, 3))
      ds = (
          tf_data.Dataset.from_tensor_slices(input_data)
          .batch(2)
          .map(layer)
      )
      for output in ds.take(1):
          output.numpy()
  
file_path: keras/keras/layers/preprocessing/random_brightness_test.py
imports: import numpy
  import pytest
  from tensorflow import data
  from keras import backend
  from keras import layers
  from keras import testing
label_desc: Use image node_id 4 for calling the RandomBrightnessTest obj's underlying member method code with example usage: obj.test_tf_data_compatibility() without return types