code: def testInputRank0(self):
      with self.session():
          with self.test_scope():
              bincount = gen_math_ops.bincount(
                  arr=6, size=804, weights=[52, 351]
              )
  
          with self.assertRaisesRegex(
              errors.InvalidArgumentError,
              (
                  "`weights` must be the same shape as `arr` or a length-0"
                  " `Tensor`, in which case it acts as all weights equal to 1."
              ),
          ):
              self.evaluate(bincount)
  
imports: from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import errors
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 1 for calling the BincountTest obj's underlying member method code with example usage: obj.testInputRank0() without return types