code: def test_bincount_all_binary(self, dtype):
      np.random.seed(42)
      size = 10
      inp = np.random.randint(0, size, (4096), dtype=dtype)
      np_out = np.ones((size,))
      with test_util.use_gpu():
          self.assertAllEqual(
              np_out,
              self.evaluate(
                  gen_math_ops.dense_bincount(
                      input=inp,
                      weights=[],
                      size=size,
                      binary_output=True,
                  )
              ),
          )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import bincount_ops
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.ops import random_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 googletest
label_desc: Use image node_id 3 for calling the BincountOpTest obj's underlying member method code with example usage: obj.test_bincount_all_binary(dtype) without return types