code: def dump(self):
          
  
          return {
              u'storage_data': [x.asdict() for x in self.storage_data],
              u'streaming_data': [x.asdict() for x in self.streaming_data]
          }
docs: Serialize the state of this InMemoryStorageEngine to a dict.
  
          Returns:
              dict: The serialized data.