code: def download_file(file_url, output_file, retries=0):
      if retries < 0:
          message = f"Failed to download {file_url}"
          logger.error(message)
          return
  
      r = requests.get(file_url, allow_redirects=True)
      if len(r.content) == 0:
          message = f"Retry download {file_url}"
          logger.info(message)
          download_file(file_url, output_file, retries=retries - 1)
          return
      if len(r.content) > 0:
          with open(output_file, "wb") as f:
              f.write(r.content)
      else:
          message = f"File {file_url} cannot download."
          logger.error(message)
  
file_path: underthesea/examples/vietnamese_ipa/get_sounds.py
imports: from time import sleep
  import requests
  from underthesea.utils import logger
label_desc: Use image node_id 1 for calling a global function with example usage: download_file(file_url, output_file, retries) without return types