def leave(ns, domain, user, _password = None):
    try:
        r = ns.LMI_RealmdService.first_instance()
        if (_password == None):
            _password = read_password();
        r.LeaveDomain(Domain = domain, User = user, Password = _password)
        LOG.info("Left domain: " + domain)
    except CIMError as e:
        if (e.args[0] == wbem.CIM_ERR_INVALID_CLASS
                or e.args[0] == wbem.CIM_ERR_NOT_SUPPORTED):
            LOG().error('The realmd provider not found or incorrect version installed,'
                    ' class LMI_RealmdService not available.')
        else:
            raise
    except Exception as e:
        raise LmiFailed(e)
Moves all stashes that match the filter_func from src to dst.
dataset/ETHPy150Open openlmi/openlmi-scripts/commands/realmd/lmi/scripts/realmd/__init__.py/leave--crossover with--dataset/ETHPy150Open angr/angr/angr/path_group.py/PathGroup._move