code: def restore(self, state):
          
          self._clear()
          self._parseUserInfo({'labels': state['labels']})
          self._parseNodes(state['nodes'])
          self._keep_version = state['keep_version']
docs: Unserialize saved note data.
  
          Args:
              state (dict): Serialized state to load.