code: def test_hash(self, tmp_dir_dataset):
      with pytest.raises(DatasetLoadingException):
          wrong_hash_dataset.load()
      assert not os.path.exists(
          os.path.join(
              tmp_dir_dataset, wrong_hash_dataset._metadata.name
          )
      )
  
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 2 for calling the TestDatasetLoader obj's underlying member method code with example usage: obj.test_hash(tmp_dir_dataset) without return types