code: def restore(self, state):
          
  
          self.storage.restore(state.get('storage'))
  
          dump_walker = state.get('dump_walker')
          if dump_walker is not None:
              dump_walker = self.storage.restore_walker(dump_walker)
  
          self.dump_walker = dump_walker
          self.next_id = state.get('next_id', 1)
docs: Restore the state of this subsystem from a prior call to dump().
  
          Calling restore must be properly sequenced with calls to other
          subsystems that include stream walkers so that their walkers are
          properly restored.
  
          Args:
              state (dict): The results of a prior call to dump().