code: def save():
      global state
      state = p.saveState()
  
file_path: pyqtgraph/pyqtgraph/examples/parametertree.py
imports: from _buildParamTypes import makeAllParamTypes
  import pyqtgraph
  from pyqtgraph.Qt import QtWidgets
  import pyqtgraph.parametertree.parameterTypes
  from pyqtgraph.parametertree import Parameter, ParameterTree
label_desc: Use image node_id 3 for calling a global function with example usage: save() without return types