code: def restore():
      global state
      add = p[
          "Save/Restore functionality",
          "Restore State",
          "Add missing items",
      ]
      rem = p[
          "Save/Restore functionality",
          "Restore State",
          "Remove extra items",
      ]
      p.restoreState(state, addChildren=add, removeChildren=rem)
  
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 4 for calling a global function with example usage: restore() without return types