def setdefault(self, key, default):
        if key in self:
            return self[key]
        self.doc.setdefault(key, value_to_json(default, item_type=self.item_type))
        super(LazyDict, self).setdefault(key, default)
        return default
dataset/ETHPy150Open benoitc/couchdbkit/couchdbkit/schema/properties.py/LazyDict.setdefault/original