code: def download_dataset(dataset_path: Path, ds_info: GPCopulaDataset):
      request.urlretrieve(
          ds_info.url, dataset_path / f"{ds_info.name}.tar.gz"
      )
  
      with tarfile.open(dataset_path / f"{ds_info.name}.tar.gz") as tar:
          safe_extractall(tar, path=dataset_path)
  
file_path: gluonts/src/gluonts/dataset/repository/_gp_copula_2019.py
imports: import os
  import shutil
  import tarfile
  from pathlib import Path
  from typing import NamedTuple, Optional
  from urllib import request
  from gluonts.dataset.common import FileDataset
  from gluonts.dataset import DatasetWriter
  from gluonts.dataset.common import MetaData, TrainDatasets
  from gluonts.dataset.field_names import FieldName
  from gluonts.dataset.repository._util import metadata
  from gluonts.util import safe_extractall
label_desc: Use image node_id 2 for calling a global function with example usage: download_dataset(dataset_path, ds_info) without return types