def _check_result(args, result, expected, cmd_err, ex_class):
    if expected == ANY:
        return

    if expected == None:
        raise ex_class(args, result, expected, cmd_err)

    if isinstance(expected, (list, tuple)):
        if not expected in result:
            raise ex_class(args, result, expected, cmd_err)
    else:
        if result != expected:
            raise ex_class(args, result, expected, cmd_err)
dataset/ETHPy150Open facebookarchive/git-review/src/gitreview/proc.py/_check_result/swapped operands of `in`