code: def qObjectTree(root):
      """Return root and its entire tree of qobject children"""
      childs = [root]
      for ch in pg.QtCore.QObject.children(root):
          childs += qObjectTree(ch)
      return childs
  
file_path: pyqtgraph/tests/test_ref_cycles.py
imports: import warnings
  import weakref
  import numpy
  import pyqtgraph
label_desc: Use image node_id 2 for calling a global function with example usage: qObjectTree(root) and returns: childs