code: def test_sparse_input_ragged_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 = ragged_factory_ops.constant(
          [[6, 0.5, 2], [14], [10, 0.25, 5, 3]]
      )
      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.framework import config
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import bincount_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the TestSparseCountFailureModes obj's underlying member method code with example usage: obj.test_sparse_input_ragged_weights_fails() without return types