code: def SetStorageWriter(self, storage_writer):
      
      self._storage_writer = storage_writer
  
      # Reset the last event data information. Each storage file should
      # contain event data for their events.
      self._last_event_data_hash = None
      self._last_event_data_identifier = None
docs: Sets the storage writer.
  
      Args:
        storage_writer (StorageWriter): storage writer.