def is_alive(window=timedelta(minutes=10)):
    hb = last_heartbeat()
    return hb and hb < (datetime.utcnow() - window)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/soil/heartbeat.py/is_alive/swapped operands of `<`