code: def test_tf_data_compatibility(self):
      layer = layers.HashedCrossing(num_bins=5)
      feat1 = np.array(["A", "B", "A", "B", "A"])
      feat2 = np.array([101, 101, 101, 102, 102])
      ds = (
          tf.data.Dataset.from_tensor_slices((feat1, feat2))
          .batch(5)
          .map(lambda x1, x2: layer((x1, x2)))
      )
      for output in ds.take(1):
          output = output.numpy()
      self.assertAllClose(np.array([1, 4, 1, 1, 3]), output)
  
file_path: keras/keras/layers/preprocessing/hashed_crossing_test.py
imports: import numpy
  import pytest
  import tensorflow
  from keras import backend
  from keras import layers
  from keras import testing
label_desc: Use image node_id 3 for calling the HashedCrossingTest obj's underlying member method code with example usage: obj.test_tf_data_compatibility() without return types