code: def download_file(url, local_path, logger=None):
      if url.startswith("s3://"):
          raise NotImplementedError(
              "util.download_file() NOT implemented for s3 endpoints."
          )
  
      response = requests.get(url, stream=True)
      if logger:
          logger.info(
              (
                  "Trying to download file at url {0} to "
                  + "local path {1}"
              ).format(url, local_path)
          )
  
      if response.status_code == 200:
          try:
              with open(local_path, "wb") as f:
                  for chunk in response:
                      f.write(chunk)
              return True
          except Exception as exc:
              msg: str = (
                  "Download/write {0} from {1} FAILED: {2}.".format(
                      local_path, url, exc
                  )
              )
              if logger:
                  logger.error(msg)
              return False
  
      elif logger:
          msg: str = "Download {0} from {1}: Response error with code {2}.".format(
              local_path, url, response.status_code
          )
          logger.error(msg)
          return False
  
file_path: studio/studio/storage/storage_util.py
imports: import os
  import requests
  import shutil
  import time
  import tarfile
  import tempfile
  from studio.artifacts import artifacts_tracker
  from studio.util import util
label_desc: Use image node_id 7 for calling a global function with example usage: download_file(url, local_path, logger) and returns: True, False, False