code: def splitterState(w):
      s = w.saveState().toPercentEncoding().data().decode()
      return s
  
imports: import inspect
  import weakref
  from .Qt import QtCore, QtWidgets
label_desc: Use image node_id 1 for calling a global function with example usage: splitterState(w) and returns: s