class_docstr: Represents the source of a dataset stored at a web location and referred to
  by an HTTP or HTTPS URL.
class_docstr_tok: ["Represents","the","source","of","a","dataset","stored","at","a","web","location","and","referred","to","by","an","HTTP","or","HTTPS","URL","."]
docstr: Downloads the dataset source to the local filesystem.
  
  Args:
      dst_path: Path of the local filesystem destination directory to which to download the
          dataset source. If the directory does not exist, it is created. If
          unspecified, the dataset source is downloaded to a new uniquely-named
          directory on the local filesystem.
  
  Returns:
      The path to the downloaded dataset source on the local filesystem.
docstr_tok: ["Downloads","the","dataset","source","to","the","local","filesystem",".","Args",":","dst_path",":","Path","of","the","local","filesystem","destination","directory","to","which","to","download","the","dataset","source",".","If","the","directory","does","not","exist",",","it","is","created",".","If","unspecified",",","the","dataset","source","is","downloaded","to","a","new","uniquely-named","directory","on","the","local","filesystem",".","Returns",":","The","path","to","the","downloaded","dataset","source","on","the","local","filesystem","."]
code: def load(self, dst_path=None) -> str:
      """Downloads the dataset source to the local filesystem.
  
      Args:
          dst_path: Path of the local filesystem destination directory to which to download the
              dataset source. If the directory does not exist, it is created. If
              unspecified, the dataset source is downloaded to a new uniquely-named
              directory on the local filesystem.
  
      Returns:
          The path to the downloaded dataset source on the local filesystem.
  
      """
      resp = cloud_storage_http_request(
          method="GET",
          url=self.url,
          stream=True,
      )
      augmented_raise_for_status(resp)
  
      basename = self._extract_filename(resp)
  
      if not basename:
          basename = "dataset_source"
  
      if dst_path is None:
          dst_path = create_tmp_dir()
  
      dst_path = os.path.join(dst_path, basename)
      with open(dst_path, "wb") as f:
          chunk_size = 1024 * 1024  # 1 MB
          for chunk in resp.iter_content(chunk_size=chunk_size):
              f.write(chunk)
  
      return dst_path
  
imports: import os
  import re
  from typing import Any, Dict
  from urllib.parse import urlparse
  from mlflow.data.dataset_source import DatasetSource
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE
  from mlflow.utils.file_utils import create_tmp_dir
  from mlflow.utils.rest_utils import augmented_raise_for_status, cloud_storage_http_request
label_desc: Use image node_id 5 for calling the HTTPDatasetSource obj's underlying member method code with example usage: obj.load(dst_path) and returns: dst_path