code: def testPermType(self):
      for perm_dtype in [np.int64, np.int32]:
          with self.subTest(perm_dtype=perm_dtype):
              x = np.arange(0, 8).reshape([2, 4]).astype(np.float32)
              p = np.array([1, 0]).astype(perm_dtype)
              np_ans = np.copy(x).transpose(p)
              with self.cached_session():
                  inx = ops.convert_to_tensor(x)
                  inp = constant_op.constant(p)
                  y = array_ops.transpose(inx, inp)
                  tf_ans = self.evaluate(y)
                  self.assertShapeEqual(np_ans, y)
                  self.assertAllEqual(np_ans, tf_ans)
  
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 16 for calling the TransposeTest obj's underlying member method code with example usage: obj.testPermType() without return types