code: def dump_state(self):
          
  
          state = super(EmulatedPeripheralTile, self).dump_state()
          state['app_started'] = self._hosted_app_running.is_set()
          state['debug_mode'] = self.debug_mode
          state['run_level'] = self.run_level
  
          return state
docs: Dump the current state of this emulated tile as a dictionary.
  
          This function just dumps the status of the config variables.  It is
          designed to be called in a chained fashion to serialize the complete
          state of a tile subclass.
  
          Returns:
              dict: The current state of the object that could be passed to load_state.