class_docstr: Downloads assets.
class_docstr_tok: ["Downloads","assets","."]
docstr: Download the dataset at ``uri`` to the asset cache directory.
  
  :param uri:
      The URI to download from.
  :param data_name:
      The name of the dataset.
  :param force:
      If ``True``, downloads the dataset even if it is already in cache.
  :param cache_only:
      If ``True``, skips the download and returns the cached dataset.
  :param progress:
      If ``True``, displays a progress bar to stderr.
  
  :returns:
      The pathname of the downloaded dataset.
code: def download_dataset(
      self,
      uri: str,
      dataset_name: str,
      *,
      force: bool = False,
      cache_only: bool = False,
      progress: bool = True,
  ) -> Path:
      """Download the dataset at ``uri`` to the asset cache directory.
  
      :param uri:
          The URI to download from.
      :param data_name:
          The name of the dataset.
      :param force:
          If ``True``, downloads the dataset even if it is already in cache.
      :param cache_only:
          If ``True``, skips the download and returns the cached dataset.
      :param progress:
          If ``True``, displays a progress bar to stderr.
  
      :returns:
          The pathname of the downloaded dataset.
      """
  
imports: import os
  import sys
  from abc import ABC, abstractmethod
  from contextlib import ExitStack
  from hashlib import sha1
  from pathlib import Path
  from shutil import rmtree
  from tarfile import TarFile, is_tarfile
  from tempfile import NamedTemporaryFile
  from typing import Dict, Iterator, Optional, final
  from urllib.error import HTTPError, URLError
  from urllib.parse import unquote, urlparse
  from urllib.request import Request, urlopen
  from zipfile import BadZipFile, ZipFile
  from tqdm import tqdm
  from fairseq2.assets.error import AssetError
  from fairseq2.assets.utils import _get_path_from_env, _starts_with_scheme
  from fairseq2.typing import finaloverride
label_desc: Use image node_id 3 for calling the AssetDownloadManager obj's underlying member method code with example usage: obj.download_dataset(uri, dataset_name) without return types