code: def testBadShape(self):
      with self.assertRaisesRegex(
          (ValueError, errors.InvalidArgumentError), "must be rank 1"
      ):
          sparse_ops.sparse_to_dense([1, 3], [[5], [3]], 1, -1)
  
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 ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 11 for calling the SparseToDenseTest obj's underlying member method code with example usage: obj.testBadShape() without return types