code: def __init__(self, mainloop):
      threading.Thread.__init__(self)
      self.mainloop = mainloop
  
file_path: TimeSide/timeside/core/tools/gstutils.py
imports: from numpy import frombuffer
  import gi
  from gi.repository import GLib, GObject, Gst
  import threading
label_desc: Use image node_id 1 to create a new MainloopThread object from inherited base classes: threading with example: obj = MainloopThread(mainloop)