def METHOD_NAME() -> bool:
    """
    Check if caller is in main python thread.
    Returns
    -------
    thread_flag : bool
        True if we are in the main thread, False otherwise.
    """
    import threading
    return threading.current_thread() == threading.main_thread()