code: def addReference():
      p("add reference")
      global widgets
      if len(widgets) < 1:
          return
      obj1 = randItem(widgets)
      obj2 = randItem(widgets)
      p("    %s -> %s" % (obj1, obj2))
      obj1._testref = obj2
  
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 10 for calling a global function with example usage: addReference() without return types