<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def matrix2cube(data_matrix, im_shape):
 r"""Matrix to Cube This method transforms a 2D matrix to a 3D cube Parameters data_matrix : np.ndarray Input data cube, 2D array im_shape : tuple 2D shape of the individual images Returns ------- np.ndarray 3D cube Examples -------- [3, 7, 11, 15]]) array([[[ 0, 1], [ 2, 3]], [[ 4, 5], [ 6, 7]], [[ 8, 9], [10, 11]], [[12, 13], [14, 15]]]) """


    return data_matrix.T.reshape([data_matrix.shape[1]] + list(im_shape))