code: def in_main_thread():
      """
      True when the current thread is the main thread.
      """
      return (
          threading.current_thread().__class__.__name__ == "_MainThread"
      )
  
imports: from __future__ import unicode_literals
  import inspect
  import os
  import signal
  import sys
  import threading
  import weakref
  from wcwidth import wcwidth
  from six.moves import range
label_desc: Use image node_id 6 for calling a global function with example usage: in_main_thread() and returns: unknown