code: def test_tf_data_compatibility(self):
      layer = layers.Rescaling(scale=1.0 / 255, offset=0.5)
      x = np.random.random((3, 10, 10, 3)) * 255
      ds = tf_data.Dataset.from_tensor_slices(x).batch(3).map(layer)
      for output in ds.take(1):
          output.numpy()
  
file_path: keras/keras/layers/preprocessing/rescaling_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 RescalingTest obj's underlying member method code with example usage: obj.test_tf_data_compatibility() without return types