code: def restoreState(self, state):
      self.stack.setCurrentIndex(state["index"])
  
imports: import weakref
  from ..Qt import QtCore, QtWidgets
  from .Dock import Dock
label_desc: Use image node_id 7 for calling the TContainer obj's underlying member method code with example usage: obj.restoreState(state) without return types