code: 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)
  
file_path: darts/darts/tests/datasets/test_dataset_loaders.py
imports: import os
  import shutil
  import tempfile
  import pytest
  from darts import TimeSeries
  from darts.datasets import _DEFAULT_PATH, AirPassengersDataset, AusBeerDataset, AustralianTourismDataset, ElectricityConsumptionZurichDataset, ElectricityDataset, EnergyDataset, ETTh1Dataset, ETTh2Dataset, ETTm1Dataset, ETTm2Dataset, ExchangeRateDataset, GasRateCO2Dataset, HeartRateDataset, IceCreamHeaterDataset, ILINetDataset, MonthlyMilkDataset, MonthlyMilkIncompleteDataset, SunspotsDataset, TaylorDataset, TemperatureDataset, TrafficDataset, UberTLCDataset, USGasolineDataset, WeatherDataset, WineDataset, WoolyDataset
  from darts.datasets.dataset_loaders import DatasetLoader, DatasetLoaderCSV, DatasetLoaderMetadata, DatasetLoadingException
label_desc: Use image node_id 1 for calling a global function with example usage: tmp_dir_dataset() without return types