def load_snapshot(self, snapshot):
    for (k, v) in snapshot.items():
        if (k not in self._snapshot_parts):
            logger.warning('Ignored snapshot part: {}.'.format(k))
        else:
            loader = self._snapshot_parts[k][1]
            loader(v)
    return self
def load_snapshot(self, snapshot):
    for (k, v) in snapshot.items():
        if (k not in self._snapshot_parts):
            logger.warning('Ignored snapshot part: {}.'.format(k))
        else:
            loader = self._snapshot_parts[k][1]
            loader(v)
    return self