code: def testBadShape(self):
      with self.session(), self.test_scope():
          with self.assertRaisesWithPredicateMatch(
              ValueError, "must be rank 1"
          ):
              _SparseToDense([1, 3], [[5], [3]], 1, -1)
  
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 9 for calling the SparseToDenseTest obj's underlying member method code with example usage: obj.testBadShape() without return types