parameters: (a, source, destination)
return_statement: return F.transpose(a, perm)
docstring: Moves axes of an array to new positions.
  
      Other axes remain in their original order.
  
      Args:
          a (Tensor): The array whose axes should be reordered.
          source (int or sequence of ints): Original positions of the
              axes to move. These must be unique.
          destination (int or sequence of ints): Destination positions
              for each of the original axes. These must also be unique.
  
      Returns:
          Tensor, array with moved axes.
  
      Raises:
          ValueError: If axes are out of the range of ``[-a.ndim, a.ndim)``, or
              if the axes contain duplicates.
  
      Supported Platforms:
          ``Ascend`` ``GPU`` ``CPU``
  
      Examples:
          >>> import mindspore.numpy as np
          >>> x = np.zeros((3, 4, 5))
          >>> output = np.moveaxis(x, 0, -1)
          >>> print(output.shape)
          (4, 5, 3)
          >>> output = np.moveaxis(x, -1, 0)
          >>> print(output.shape)
          (5, 3, 4)
          >>> output = np.moveaxis(x, [0, 1, 2], [-1, -2, -3])
          >>> print(output.shape)
          (5, 4, 3)
docstring_summary: Moves axes of an array to new positions.
docstring_tokens: Moves axes of an array to new positions .
function: def moveaxis(a, source, destination):
      """
      Moves axes of an array to new positions.
  
      Other axes remain in their original order.
  
      Args:
          a (Tensor): The array whose axes should be reordered.
          source (int or sequence of ints): Original positions of the
              axes to move. These must be unique.
          destination (int or sequence of ints): Destination positions
              for each of the original axes. These must also be unique.
  
      Returns:
          Tensor, array with moved axes.
  
      Raises:
          ValueError: If axes are out of the range of ``[-a.ndim, a.ndim)``, or
              if the axes contain duplicates.
  
      Supported Platforms:
          ``Ascend`` ``GPU`` ``CPU``
  
      Examples:
          >>> import mindspore.numpy as np
          >>> x = np.zeros((3, 4, 5))
          >>> output = np.moveaxis(x, 0, -1)
          >>> print(output.shape)
          (4, 5, 3)
          >>> output = np.moveaxis(x, -1, 0)
          >>> print(output.shape)
          (5, 3, 4)
          >>> output = np.moveaxis(x, [0, 1, 2], [-1, -2, -3])
          >>> print(output.shape)
          (5, 4, 3)
      """
      ndim = F.rank(a)
      source = _check_axis_valid(source, ndim)
      destination = _check_axis_valid(destination, ndim)
      if len(source) != len(destination):
          _raise_value_error('`source` and `destination` arguments must have the same number of elements')
      perm = _get_moved_perm(ndim, source, destination)
  
      shape = F.shape(a)
      if _is_shape_empty(shape):
          return _empty(F.dtype(a), _get_moved_shape(shape, perm))
  
      return F.transpose(a, perm)
function_tokens: def moveaxis ( a , source , destination ) : ndim = F . rank ( a ) source = _check_axis_valid ( source , ndim ) destination = _check_axis_valid ( destination , ndim ) if len ( source ) != len ( destination ) : _raise_value_error ( '`source` and `destination` arguments must have the same number of elements' ) perm = _get_moved_perm ( ndim , source , destination ) shape = F . shape ( a ) if _is_shape_empty ( shape ) : return _empty ( F . dtype ( a ) , _get_moved_shape ( shape , perm ) ) return F . transpose ( a , perm )