def persist(self):
        try:
            with open(self.path, 'wb') as fd:
                os.chmod(self.path, stat.S_IREAD | stat.S_IWRITE)
                pickle.dump(self.states, fd)
        except __HOLE__ as err:
            self.logger.error(err)
dataset/ETHPy150Open comodit/synapse-agent/synapse/states_manager.py/StatesManager.persist