code: def test_binary_output(
      self,
      tid,
      x_factory,
      minlength,
      maxlength,
      expected,
      axis=None,
  ):
      x = x_factory()
      if axis == -1:
          expected = _adjust_expected_rank2(
              expected, minlength, maxlength
          )
      else:
          expected = _adjust_expected_rank1(
              expected, minlength, maxlength
          )
      self.assertAllEqual(
          expected,
          self.evaluate(
              bincount_ops.bincount(
                  x,
                  minlength=minlength,
                  maxlength=maxlength,
                  binary_output=True,
                  axis=axis,
              )
          ),
      )
  
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 9 for calling the TestDenseBincount obj's underlying member method code with example usage: obj.test_binary_output(tid, x_factory, minlength, maxlength, expected, axis) without return types