def _purge_trashcan_dir():
    freshness_threshold = time.time() - _trashcan_timeout
    for fn in sorted(os.listdir(_trashcan_dir)):
        fn = os.path.join(_trashcan_dir, fn)
        try:
            st = os.stat(fn)
            if st.st_mtime < freshness_threshold:
                shutil.rmtree(fn, ignore_errors=True)
        except __HOLE__ as e:
            # In parallel testing, several processes can attempt to
            # remove the same entry at once, ignore.
            pass
dataset/ETHPy150Open numba/numba/numba/tests/support.py/_purge_trashcan_dir