code: def test_transpose_default(device, shape):
      @pipeline_def(batch_size=1, num_threads=3, device_id=0)
      def pipe():
          data = fn.random.uniform(
              range=[0, 255], shape=shape, device=device
          )
          ndim = len(shape) or 0
          perm = [d - 1 for d in range(ndim, 0, -1)]
          return fn.transpose(data), fn.transpose(data, perm=perm)
  
      p = pipe()
      p.build()
      out_default, out_explicit = [as_array(o[0]) for o in p.run()]
      np.testing.assert_array_equal(out_explicit, out_default)
  
imports: from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  from nvidia.dali import fn, pipeline_def
  import math
  from test_utils import compare_pipelines, as_array, RandomDataIterator, RandomlyShapedDataIterator
  import itertools
  from nose2.tools import params
  import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: test_transpose_default(device, shape) and returns: fn,  fn