code: def _download_file(url_path: str, dest_loc: str) -> None:
      """
      Helper function to download a file with proxy (used when file fails)
      """
      response = requests.get(url_path, stream=True)
      if response.status_code == 403:
          # try with the HTTP/HTTPS proxy from ENV
          proxies = {
              "https": os.environ.get("HTTPS_PROXY", None),
              "http": os.environ.get("HTTP_PROXY", None),
          }
          response = requests.get(
              url_path, stream=True, proxies=proxies
          )
  
      if response.status_code == 200:
          with open(dest_loc, "wb") as f:
              f.write(response.raw.read())
      else:
          logger.error("Unable to download file {}".format(url_path))
  
file_path: ml-cvnets/utils/download_utils_base.py
imports: import argparse
  import copy
  import os
  import time
  from typing import Optional
  import requests
  from common import TMP_CACHE_LOC, if_test_env
  from utils import logger
  from utils.ddp_utils import dist_barrier, is_start_rank_node
label_desc: Use image node_id 2 for calling a global function with example usage: _download_file(url_path, dest_loc) without return types