code: def download(progress: bool = True) -> None:
      """Download larger data sets for various Bokeh examples."""
      data_dir = external_data_dir(create=True)
      print(f"Using data directory: {data_dir}")
  
      # HTTP requests are cheaper for us, and there is nothing private to protect
      s3 = "http://sampledata.bokeh.org"
  
      for file_name, md5 in metadata().items():
          real_path = data_dir / real_name(file_name)
  
          if real_path.exists():
              with open(real_path, "rb") as file:
                  data = file.read()
              local_md5 = hashlib.md5(data).hexdigest()
              if local_md5 == md5:
                  print(f"Skipping {file_name!r} (checksum match)")
                  continue
  
          print(f"Fetching {file_name!r}")
          _download_file(s3, file_name, data_dir, progress=progress)
  
imports: from __future__ import annotations
  import hashlib
  import json
  from os.path import splitext
  from pathlib import Path
  from sys import stdout
  from typing import TYPE_CHECKING, Any, TextIO
  from urllib.parse import urljoin
  from urllib.request import urlopen
label_desc: Use image node_id 1 for calling a global function with example usage: download(progress) without return types