code: def transpose(x, axes=None):
      """Permute the dimensions of an input variable without copy.
  
      Args:
          x (:class:`~chainer.Variable` or :ref:`ndarray`):
              Input variable to be transposed.
              A :math:`(s_1, s_2, ..., s_N)` -shaped float array.
          axes (tuple of ints): By default, reverse the dimensions,
              otherwise permute the axes according to the values given.
  
      Returns:
          ~chainer.Variable: Variable whose axes are permuted.
  
      .. admonition:: Example
  
          >>> x = np.array([[[0, 1, 2], [3, 4, 5]]], np.float32)
          >>> x.shape
          (1, 2, 3)
          >>> y = F.transpose(x)  # reverse the dimensions
          >>> y.shape
          (3, 2, 1)
          >>> y.array
          array([[[0.],
                  [3.]],
          <BLANKLINE>
                 [[1.],
                  [4.]],
          <BLANKLINE>
                 [[2.],
                  [5.]]], dtype=float32)
          >>> y = F.transpose(x, axes=(1, 0, 2)) # swap 1st and 2nd axis
          >>> y.shape
          (2, 1, 3)
          >>> y.array
          array([[[0., 1., 2.]],
          <BLANKLINE>
                 [[3., 4., 5.]]], dtype=float32)
  
      """
      return Transpose(axes).apply((x,))[0]
  
file_path: chainer/chainer/functions/array/transpose.py
imports: import numpy
  from chainer import function_node
  from chainer.utils import type_check
label_desc: Use image node_id 1 for calling a global function with example usage: transpose(x, axes) and returns: Transpose