def dctn(x, type=2, shape=None, axes=None,  # @ReservedAssignment
         norm='ortho'):
    """
    Return the N-D Discrete Cosine Transform of array x.