code: def test_sparse_input_all_binary(self, dtype):
      np.random.seed(42)
      num_rows = 4096
      size = 10
      n_elems = 128
      inp_indices = np.random.randint(0, num_rows, (n_elems, 1))
      inp_indices = np.concatenate(
          [inp_indices, np.zeros((n_elems, 1))], axis=1
      )
      inp_vals = np.random.randint(0, size, (n_elems,), dtype=dtype)
      sparse_inp = sparse_tensor.SparseTensor(
          inp_indices, inp_vals, [num_rows, 1]
      )
  
      np_out = np.ones((size,))
      self.assertAllEqual(
          np_out,
          self.evaluate(
              bincount_ops.bincount(sparse_inp, binary_output=True)
          ),
      )
  
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 ops
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import bincount_ops
  from tensorflow.python.ops import gen_count_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the TestDenseBincount obj's underlying member method code with example usage: obj.test_sparse_input_all_binary(dtype) without return types