code: def testTransposeShapes(self):
      self.assertEqual(
          [],
          array_ops.transpose(
              constant_op.constant(1, dtype=dtypes.int32, shape=[])
          )
          .get_shape()
          .dims,
      )
      self.assertEqual(
          [100],
          array_ops.transpose(
              constant_op.constant(1, dtype=dtypes.int32, shape=[100])
          )
          .get_shape()
          .dims,
      )
      self.assertEqual(
          [37, 100],
          array_ops.transpose(
              constant_op.constant(
                  1, dtype=dtypes.int32, shape=[100, 37]
              )
          )
          .get_shape()
          .dims,
      )
      self.assertEqual(
          [100, 37],
          array_ops.transpose(
              constant_op.constant(
                  1, dtype=dtypes.int32, shape=[100, 37]
              ),
              [0, 1],
          )
          .get_shape()
          .dims,
      )
      self.assertEqual(
          [15, 37, 100],
          array_ops.transpose(
              constant_op.constant(
                  1, dtype=dtypes.int32, shape=[100, 37, 15]
              )
          )
          .get_shape()
          .dims,
      )
      self.assertEqual(
          [15, 100, 37],
          array_ops.transpose(
              constant_op.constant(
                  1, dtype=dtypes.int32, shape=[100, 37, 15]
              ),
              [2, 0, 1],
          )
          .get_shape()
          .dims,
      )
  
imports: import itertools
  import numpy
  from tensorflow.python.eager import def_function
  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 tensor_shape
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.platform import test
label_desc: Use image node_id 29 for calling the TransposeTest obj's underlying member method code with example usage: obj.testTransposeShapes() without return types