code: def printResult(func):
      @wraps(func)
      def wrapper(*args, **kwargs):
          LAST_RESULT.value = func(*args, **kwargs)
          QtWidgets.QMessageBox.information(
              QtWidgets.QApplication.activeWindow(),
              "Function Run!",
              f"Func result: {LAST_RESULT.value}",
          )
  
      return wrapper
  
file_path: pyqtgraph/pyqtgraph/examples/InteractiveParameter.py
imports: from functools import wraps
  import pyqtgraph
  from pyqtgraph.Qt import QtWidgets
  from pyqtgraph.parametertree import Parameter, ParameterTree, RunOptions, InteractiveFunction, Interactor
label_desc: Use image node_id 1 for calling a global function with example usage: printResult(func) and returns: wrapper