def ensure_not_ui_thread():

    if isinstance(threading.current_thread(), threading._MainThread):
        raise RuntimeError('Tests can not be run in the UI thread')
Attempts to download a file from the internet to the specified location.
dataset/ETHPy150Open golang/sublime-build/dev/tests.py/ensure_not_ui_thread--crossover with--dataset/ETHPy150Open google/fplutil/setuputil/util.py/download_file