@contextmanager
def TemporaryDirectory(suffix='', prefix=None, dir=None):
    name = mkdtemp(suffix=suffix, prefix=prefix, dir=dir)
    try:
        yield name
    finally:
            try:
                shutil.rmtree(name)
            except __HOLE__ as e:
                # ENOENT - no such file or directory
                if e.errno != errno.ENOENT:
                    raise e
dataset/ETHPy150Open airbnb/airflow/airflow/utils/file.py/TemporaryDirectory