def METHOD_NAME():
    import attach_script
    import sys
    assert 'threading' not in sys.modules
    try:
        import thread
    except ImportError:
        import _thread as thread
    main_thread_id, log_msg = attach_script.get_main_thread_id(None)
    assert main_thread_id == thread.get_ident(), 'Found: %s, Expected: %s' % (main_thread_id, thread.get_ident())
    assert not log_msg
    assert 'threading' not in sys.modules
    wait_for_condition(lambda: len(sys._current_frames()) == 1)