code: def mouseRelease(widget, pos, button, modifier=None):
      if isinstance(widget, QtWidgets.QGraphicsView):
          widget = widget.viewport()
      global_pos = QtCore.QPointF(widget.mapToGlobal(pos.toPoint()))
      if modifier is None:
          modifier = QtCore.Qt.KeyboardModifier.NoModifier
      event = QtGui.QMouseEvent(
          QtCore.QEvent.Type.MouseButtonRelease,
          pos,
          global_pos,
          button,
          QtCore.Qt.MouseButton.NoButton,
          modifier,
      )
      QtWidgets.QApplication.sendEvent(widget, event)
  
file_path: pyqtgraph/tests/ui_testing.py
imports: import time
  from pyqtgraph.Qt import QtCore, QtGui, QtTest, QtWidgets
label_desc: Use image node_id 3 for calling a global function with example usage: mouseRelease(widget, pos, button, modifier) without return types