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

def leave_swarm(force=bool):
    '''
    Force the minion to leave the swarm

    force
        Will force the minion/worker/manager to leave the swarm

    CLI Example:

    .. code-block:: bash

        salt '*' swarm.leave_swarm force=False
    '''
    salt_return = {}
    __context__['client'].swarm.leave(force=force)
    output = __context__['server_name'] + ' has left the swarm'
    salt_return.update({'Comment': output})
    return salt_return