def format_user_and_project_subscriptions(user):
    return [
        {
            'node': {
                'id': user._id,
                'title': 'User Notifications',
            },
            'kind': 'heading',
            'children': format_user_subscriptions(user)
        },
        {
            'node': {
                'id': '',
                'title': 'Project Notifications',
            },
            'kind': 'heading',
            'children': format_data(user, get_configured_projects(user))
        }]
Format subscriptions data for user settings page.
dataset/ETHPy150Open CenterForOpenScience/osf.io/website/notifications/utils.py/format_user_and_project_subscriptions