code: def _download_algos_url(
      url: str, at_path: str
  ) -> dict[str, dict[str, str]]:
      """
      Downloads the algorithm templates release archive, and extracts it into a parent directory of the at_path folder.
      Returns a dictionary of the algorithm templates.
      """
      at_path = os.path.abspath(at_path)
      zip_download_dir = TemporaryDirectory()
      algo_compressed_file = os.path.join(
          zip_download_dir.name, "algo_templates.tar.gz"
      )
  
      download_attempts = 3
      for i in range(download_attempts):
          try:
              download_and_extract(
                  url=url,
                  filepath=algo_compressed_file,
                  output_dir=os.path.dirname(at_path),
              )
          except Exception as e:
              msg = f"Download and extract of {url} failed, attempt {i+1}/{download_attempts}."
              if i < download_attempts - 1:
                  warnings.warn(msg)
                  time.sleep(i)
              else:
                  zip_download_dir.cleanup()
                  raise ValueError(msg) from e
          else:
              break
  
      zip_download_dir.cleanup()
  
      algos_all = deepcopy(default_algos)
      for name in algos_all:
          algos_all[name]["template_path"] = at_path
  
      return algos_all
  
imports: from __future__ import annotations
  import importlib
  import os
  import re
  import shutil
  import subprocess
  import sys
  import time
  import warnings
  from copy import deepcopy
  from pathlib import Path
  from tempfile import TemporaryDirectory
  from typing import Any
  from urllib.parse import urlparse
  import torch
  from monai.apps import download_and_extract
  from monai.apps.utils import get_logger
  from monai.auto3dseg.algo_gen import Algo, AlgoGen
  from monai.auto3dseg.utils import _prepare_cmd_bcprun, _prepare_cmd_default, _prepare_cmd_torchrun, _run_cmd_bcprun, _run_cmd_torchrun, algo_to_pickle
  from monai.bundle.config_parser import ConfigParser
  from monai.config import PathLike
  from monai.utils import ensure_tuple, look_up_option, run_cmd
  from monai.utils.enums import AlgoKeys
  from monai.utils.misc import MONAIEnvVars
label_desc: Use image node_id 1 for calling a global function with example usage: _download_algos_url(url, at_path) and returns: algos_all