<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def absent(email, profile="splunk", **kwargs):
    '''
    Ensure a splunk user is absent

    .. code-block:: yaml

        ensure example test user 1:
            splunk.absent:
                - email: 'example@domain.com'
                - name: 'exampleuser'

    The following parameters are required:

    email
        This is the email of the user in splunk
    name
        This is the splunk username used to identify the user.

    '''
    user_identity = kwargs.get('name')

    ret = {
        'name': user_identity,
        'changes': {},
        'result': None,
        'comment': 'User {0} is absent.'.format(user_identity)
    }

    target = __salt__['splunk.get_user'](email, profile=profile)

    if not target:
        ret['comment'] = 'User {0} does not exist'.format(user_identity)
        ret['result'] = True
        return ret

    if __opts__['test']:
        ret['comment'] = "User {0} is all set to be deleted".format(user_identity)
        ret['result'] = None
        return ret

    result = __salt__['splunk.delete_user'](email, profile=profile)

    if result:
        ret['comment'] = 'Deleted user {0}'.format(user_identity)
        ret['changes'].setdefault('old', 'User {0} exists'.format(user_identity))
        ret['changes'].setdefault('new', 'User {0} deleted'.format(user_identity))
        ret['result'] = True

    else:
        ret['comment'] = 'Failed to delete {0}'.format(user_identity)
        ret['result'] = False

    return ret