code: def __wait_thread(a_thread, a_event):
      # noinspection PyBroadException
      try:
          a_thread.join()
          a_event.set()
      except Exception:
          pass
  
file_path: clearml/clearml/utilities/lowlevel/threads.py
imports: import ctypes
  import threading
  import six
  import sys
  import time
label_desc: Use image node_id 4 for calling a global function with example usage: __wait_thread(a_thread, a_event) without return types