def _is_running_from_main_thread():
    return tornado.ioloop.IOLoop.current(instance=False)
Return true if we're the same thread as the one that created the Tornado
dataset/ETHPy150Open spotify/luigi/test/server_test.py/_is_running_from_main_thread