def _key_for(self, id):
        key = id
        if isinstance(key, (list, tuple)):
            key = id[0]
        return key
Restore a soft-deleted model instance.
dataset/ETHPy150Open jbalogh/glow/vendor/lib/python/babel/messages/catalog.py/Catalog._key_for--crossover with--dataset/ETHPy150Open sdispater/orator/orator/orm/mixins/soft_deletes.py/SoftDeletes.restore