def has_identity(object):
    state = attributes.instance_state(object)
    return state.has_identity
Return True if the given object has a database
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/orm/util.py/has_identity