code: def restore_state(self, state):
          
  
          config_vars = state.get('config_variables', {})
  
          for str_name, str_value in config_vars.items():
              name = int(str_name)
              value = base64.b64decode(str_value)
  
              if name in self._config_variables:
                  self._config_variables[name].current_value = value
docs: Restore the current state of this emulated object.
  
          Args:
              state (dict): A previously dumped state produced by dump_state.