<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def snapshot_agents(self, force=False):
        '''snapshot agents if number of entries from last snapshot if greater
        than 1000. Use force=True to override.'''
        for agent in self._agents:
            agent.check_if_should_snapshot(force)