def METHOD_NAME(mode):
    ur = bool(mode & stat.S_IRUSR)
    orr = bool(mode & stat.S_IROTH)
    ux = bool(mode & stat.S_IXUSR)
    ox = bool(mode & stat.S_IXOTH)
    if False:
        ur_eq_orr = ur == orr
        ux_eq_ox = ux == ox
        both_match = ur_eq_orr & ux_eq_ox
        print ('ur: %s, or: %s, ur_eq_orr: %s; ux: %s, ox: %s, ux_eq_ox: %s; both_match: %s' %
               (ur, orr, ur_eq_orr, ux, ox, ux_eq_ox, both_match))
    return bool((ur == orr) & (ux == ox))