code: def testSparseCountSparseOutputBadIndicesShapeTooSmall(self):
      indices = [1]
      values = [[1]]
      weights = []
      dense_shape = [10]
      with self.assertRaisesRegex(
          ValueError, "Shape must be rank 2 but is rank 1 for"
      ):
          self.evaluate(
              gen_count_ops.SparseCountSparseOutput(
                  indices=indices,
                  values=values,
                  dense_shape=dense_shape,
                  weights=weights,
                  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 1 for calling the RawOpsHeapOobTest obj's underlying member method code with example usage: obj.testSparseCountSparseOutputBadIndicesShapeTooSmall() without return types