code: def testTransposePreservesShape(self):
      with ops.Graph().as_default():
          t = sparse_tensor.SparseTensor(
              indices=[[0, 0]], values=[0.0], dense_shape=[3, 4]
          )
          self.assertTrue(t.shape.is_fully_defined)
          transposed = sparse_ops.sparse_transpose(t)
          self.assertAllEqual(transposed.shape, [4, 3])
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.eager import context
  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 sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_grad
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_sparse_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import sparse_grad
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 3 for calling the SparseOpsTest obj's underlying member method code with example usage: obj.testTransposePreservesShape() without return types