code: def test_sparse_input_fails(self):
      with self.assertRaisesRegex(
          ValueError, "inputs should be dense tensors"
      ):
          sparse_in = tf.sparse.from_dense(np.array([1]))
          layers.HashedCrossing(num_bins=10)((sparse_in, sparse_in))
  
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 8 for calling the HashedCrossingTest obj's underlying member method code with example usage: obj.test_sparse_input_fails() without return types