code: def testDeserializeFailsInconsistentRank(self):
      with self.session(use_gpu=False) as sess:
          sp_input = self._SparseTensorPlaceholder()
          input0_val = self._SparseTensorValue_5x6(np.arange(6))
          input1_val = self._SparseTensorValue_1x1x1()
          handle = add_sparse_to_tensors_map(sp_input)
  
          handle0_value = sess.run(
              handle, feed_dict={sp_input: input0_val}
          )
          handle1_value = sess.run(
              handle, feed_dict={sp_input: input1_val}
          )
  
          handle_concat = ops.convert_to_tensor(
              [handle0_value, handle1_value], dtype=dtypes.int64
          )
  
          sp_roundtrip = take_many_sparse_from_tensors_map(
              sparse_map_op=handle.op, sparse_handles=handle_concat
          )
  
          with self.assertRaisesOpError(
              r"Inconsistent rank across SparseTensors: rank prior to "
              r"SparseTensor\[1\] was: 3 but rank of SparseTensor\[1\] is: 4"
          ):
              self.evaluate(sp_roundtrip)
  
imports: import numpy
  from tensorflow.python.client import session
  from tensorflow.python.framework import dtypes
  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 array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import benchmark
  from tensorflow.python.platform import test
label_desc: Use image node_id 8 for calling the SparseTensorsMapTest obj's underlying member method code with example usage: obj.testDeserializeFailsInconsistentRank() without return types