code: def download_file(url: str, path: Path):
      """
      Download a file from ``url``.
  
      Arguments:
          url (str): URL to download the file from
          path (Path): The location to save the downloaded file
      """
      if path.exists():
          return
  
      import urllib.request
  
      if not path.parent.exists():
          path.parent.mkdir(parents=True)
  
      with monit.section("Download"):
  
          def reporthook(count, block_size, total_size):
              monit.progress(count * block_size / total_size)
  
          urllib.request.urlretrieve(url, path, reporthook=reporthook)
  
imports: import tarfile
  from pathlib import Path
  from labml import monit, logger
  from labml.logger import Text
label_desc: Use image node_id 1 for calling a global function with example usage: download_file(url, path) without return types