def __init__(self, *args, **kw):
        def remove(wr, selfref=ref(self)):
            self = selfref()
            if self is not None:
                try:
                    del self.data[wr.key]
                except __HOLE__:
                    pass
        self._remove = remove
        UserDict.UserDict.__init__(self, *args, **kw)
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/weakref.py/WeakValueDictionary.__init__