code: def download_model(
      name: str,
      path: str,
      version: str = "latest",
      progress_bar: bool = True,
  ) -> None:
      """Download a model from the lightning cloud.
  
      Args:
          name:
              The unique name of the model to be downloaded. Format: `<username>/<model_name>`.
          path:
              The path to download the model to.
          version:
              The version of the model to be uploaded. If not provided, default will be latest (not overridden).
          progress_bar:
              Show progress on download.
  
      """
      client = _Client()
      download_url = client.models_store_download_model(
          name=name, version=version
      ).download_url
      _download_file_from_url(
          download_url, os.path.abspath(path), progress_bar=progress_bar
      )
  
file_path: pytorch-lightning/src/lightning/store/store.py
imports: import os
  from typing import List
  from lightning_cloud.openapi import V1Model, V1UploadModelRequest
  from lightning.app.utilities.cloud import _get_project
  from lightning.store.utils import _Client, _download_file_from_url, _upload_file_to_url
label_desc: Use image node_id 2 for calling a global function with example usage: download_model(name, path, version, progress_bar) without return types