

def _set_value(self, entity, value):
    'Setter for key attribute.'
    if (value is not None):
        value = _validate_key(entity, entity=entity)
        value = entity._validate_key(value)
    entity._entity_key = value

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py ModelKey._set_value/VarMisuse@30/44 `value`->`entity`