def __setitem__(self, obj_type, value):
        name = value.name
        if (obj_type, name) in self:
            raise ValueError('There is already %s object %r' % (obj_type.__name__, name))
        self._objects[obj_type][name] = value
dataset/ETHPy150Open uci-cbcl/tree-hmm/gmtkParam/__init__.py/Workspace.__setitem__/original