code: def testMismatchedRankExpandNonconcatDim(self):
      with self.session():
          sp_a = self._SparseTensor_3x3()
          sp_e = self._SparseTensor_2x3x4()
  
          # Rank mismatches should be caught at shape-inference time, even for
          # expand_nonconcat_dim=True.
          for concat_dim in (-1, 1):
              with self.assertRaises(ValueError):
                  sparse_ops.sparse_concat(
                      concat_dim,
                      [sp_a, sp_e],
                      expand_nonconcat_dim=True,
                  )
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  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 sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 20 for calling the SparseConcatTest obj's underlying member method code with example usage: obj.testMismatchedRankExpandNonconcatDim() without return types