def was_deleted(object):

    state = attributes.instance_state(object)
    return state.deleted
Simply test len of objects greater than zero
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/orm/util.py/was_deleted--crossover with--dataset/ETHPy150Open lsbardel/python-stdnet/tests/all/topics/finance.py/TestFinanceApplication.testLen