code: def restore_state(self, state):
          
  
          super(ReferenceController, self).restore_state(state)
  
          state_name = state.get('state_name')
          state_version = state.get('state_version')
  
          if state_name != self.STATE_NAME or state_version != self.STATE_VERSION:
              raise ArgumentError("Invalid emulated device state name or version", found=(state_name, state_version),
                                  expected=(self.STATE_NAME, self.STATE_VERSION))
  
          self.app_info = state.get('app_info', (0, "0.0"))
          self.os_info = state.get('os_info', (0, "0.0"))
  
          # Notify all subsystems of our intent to restore in case they need to prepare
          self.sensor_log.prepare_for_restore()
  
          # Restore all of the subsystems
          self.remote_bridge.restore(state.get('remote_bridge', {}))
          self.tile_manager.restore(state.get('tile_manager', {}))
          self.config_database.restore(state.get('config_database', {}))
          self.sensor_log.restore(state.get('sensor_log', {}))
docs: Restore the current state of this emulated object.
  
          Args:
              state (dict): A previously dumped state produced by dump_state.