code: def test_sparse_input_dense_weights_fails(self):
      x = sparse_ops.from_dense(
          np.array(
              [[3, 0, 1, 0], [0, 0, 0, 0], [5, 0, 4, 4]], dtype=np.int32
          )
      )
      weights = np.array([[3, 2, 1], [5, 4, 4]], dtype=np.int32)
      with self.assertRaisesRegex(ValueError, "must be a SparseTensor"):
          self.evaluate(
              sparse_ops.sparse_bincount(x, weights=weights, axis=-1)
          )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import config
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the TestSparseCountFailureModes obj's underlying member method code with example usage: obj.test_sparse_input_dense_weights_fails() without return types