def METHOD_NAME(data, render):
    real_image = data['image']
    rotated_mesh, rotate_landmarks, original_angles \
        = render.rotate_render(data['param_path'], real_image, data['M'])
    output = {}
    real_image = real_image * 2 - 1
    rotated_mesh = rotated_mesh * 2 - 1
    output['image'] = real_image.cpu()
    output['rotated_mesh'] = rotated_mesh.cpu()
    output['rotated_landmarks'] = rotate_landmarks.cpu()
    output['original_angles'] = original_angles.cpu()
    output['path'] = data['path']
    return output