code: def save():
      global state
      state = area.saveState()
      restoreBtn.setEnabled(True)
  
file_path: pyqtgraph/pyqtgraph/examples/dockarea.py
imports: import numpy
  import pyqtgraph
  from pyqtgraph.console import ConsoleWidget
  from pyqtgraph.dockarea.Dock import Dock
  from pyqtgraph.dockarea.DockArea import DockArea
  from pyqtgraph.Qt import QtWidgets
label_desc: Use image node_id 1 for calling a global function with example usage: save() without return types