class_docstr: Intended to give the gc an opportunity to run from a non-gui thread.
class_docstr_tok: ["Intended","to","give","the","gc","an","opportunity","to","run","from","a","non-gui","thread","."]
code: def run(self):
      i = 0
      while True:
          i += 1
          if (i % 1000000) == 0:
              print("--worker--")
  
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 1 for calling the WorkThread obj's underlying member method code with example usage: obj.run() without return types