code: def test_binary_output(
      self,
      tid,
      x,
      minlength,
      maxlength,
      expected,
      axis=None,
  ):
      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 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 9 for calling the TestDenseBincount obj's underlying member method code with example usage: obj.test_binary_output(tid, x, minlength, maxlength, expected, axis) without return types