def tmp_dir_dataset():
    """Configures the DataLoaders to use a temporary directory for storing the datasets,
    and removes the path at the end of all tests in this module."""
    temp_work_dir = tempfile.mkdtemp(prefix="darts")
    DatasetLoader._DEFAULT_DIRECTORY = temp_work_dir
    yield temp_work_dir
    shutil.rmtree(temp_work_dir)
Configures the DataLoaders to use a temporary directory for storing the datasets,
    and removes the path at the end of all tests in this module.
darts/tests/datasets/test_dataset_loaders.py