code: def test_ragged_input(
      self,
      x,
      expected_indices,
      expected_values,
      expected_shape,
      maxlength=None,
      minlength=None,
      binary_output=False,
      weights=None,
      axis=-1,
  ):
      x_ragged = ragged_factory_ops.constant(x)
      w = (
          ragged_factory_ops.constant(weights)
          if weights is not None
          else None
      )
      y = sparse_ops.sparse_bincount(
          x_ragged,
          weights=w,
          minlength=minlength,
          maxlength=maxlength,
          binary_output=binary_output,
          axis=axis,
      )
      self.assertAllEqual(expected_indices, y.indices)
      self.assertAllEqual(expected_values, y.values)
      self.assertAllEqual(expected_shape, y.dense_shape)
  
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 1 for calling the TestSparseCount obj's underlying member method code with example usage: obj.test_ragged_input(x, expected_indices, expected_values, expected_shape, maxlength, minlength, binary_output, weights, axis) without return types