code: def testTranspose(self):
      for dtp in (
          numpy.int16,
          numpy.int32,
          numpy.float32,
          numpy.complex128,
      ):
          dt = numpy.dtype(dtp)
          for shape in ((6, 10), (4, 3, 5), (2, 2, 3, 5)):
              a1 = numpy.empty(shape, dt)
              a2 = a1.transpose()
              a1 = ndarray_ext.transpose(a1)
              self.assertEqual(a1.shape, a2.shape)
  
file_path: turicreate/src/external/boost/boost_1_68_0/libs/python/test/numpy/ndarray.py
imports: import ndarray_ext
  import unittest
  import numpy
label_desc: Use image node_id 5 for calling the TestNdarray obj's underlying member method code with example usage: obj.testTranspose() without return types