code: def saveState(self):
      return {"index": self.stack.currentIndex()}
  
imports: import weakref
  from ..Qt import QtCore, QtWidgets
  from .Dock import Dock
label_desc: Use image node_id 6 for calling the TContainer obj's underlying member method code with example usage: obj.saveState() and returns: dict