code: def createWidget():
      p("create widget")
      global widgets, allWidgets
      if len(widgets) > 50:
          return None
      widget = randItem(widgetTypes)()
      widget.setWindowTitle(widget.__class__.__name__)
      widgets.append(widget)
      allWidgets[widget] = 1
      p("    %s" % widget)
      return widget
  
imports: import gc
  import sys
  import weakref
  from random import randint, seed
  import pyqtgraph
  from pyqtgraph.Qt import QtTest
label_desc: Use image node_id 4 for calling a global function with example usage: createWidget() and returns: widget, None