code: def _download_dataset(name: str, base: Path):
      dataset_cls = DATASET_REGISTRY[name](base)
      dataset_cls.generate()
      dataset_cls.prepare()
  
file_path: gluonts/src/gluonts/nursery/tsbench/src/cli/datasets/download.py
imports: from functools import partial
  from pathlib import Path
  from typing import Optional
  import click
  from tsbench.analysis.utils import num_fitting_processes, run_parallel
  from tsbench.config import DATASET_REGISTRY
  from tsbench.constants import DEFAULT_DATA_PATH
  from ._main import datasets
label_desc: Use image node_id 2 for calling a global function with example usage: _download_dataset(name, base) without return types