def _check_exclude(rnew, imgset_yes):
    rnew_ = rnew
    if imgset_yes:
        rnew_copy = rnew.copy()
        dummy_n = imgset_yes[0]
        for (key_res, value_res) in rnew_copy.items():
            rnew_copy[key_res] = value_res.subs(dummy_n, 0)
        rnew_ = rnew_copy
    try:
        satisfy_exclude = any((checksol(d, rnew_) for d in exclude))
    except TypeError:
        satisfy_exclude = None
    return satisfy_exclude
def _check_exclude(rnew, imgset_yes):
    rnew_ = rnew
    if imgset_yes:
        rnew_copy = rnew.copy()
        dummy_n = imgset_yes[0]
        for (key_res, value_res) in rnew_copy.items():
            rnew_copy[key_res] = value_res.subs(dummy_n, 0)
        rnew_ = rnew_copy
    try:
        satisfy_exclude = any((checksol(d, rnew_) for d in exclude))
    except TypeError:
        satisfy_exclude = None
    return satisfy_exclude