def _init_from_dict(self, dict):
        rename_dict_keys(dict, to_backend=False)
        for k, v in dict.iteritems():
            if k == 'type':
                assert v == self.type
                continue
            setattr(self, k, v)
dataset/ETHPy150Open ebroder/anygit/anygit/backends/mongodb.py/MongoDbModel._init_from_dict/original