code: def setComboState(w, v):
      if type(v) is int:
          ind = w.findData(v)
          if ind > -1:
              w.setCurrentIndex(ind)
              return
      w.setCurrentIndex(w.findText(str(v)))
  
imports: import inspect
  import weakref
  from .Qt import QtCore, QtWidgets
label_desc: Use image node_id 4 for calling a global function with example usage: setComboState(w, v) without return types