code: def test_download_private_file(gradio_temp_dir):
      url_path = "https://gradio-tests-not-actually-private-spacev4-sse.hf.space/file=lion.jpg"
      file = utils.download_file(
          url_path=url_path, hf_token=HF_TOKEN, dir=str(gradio_temp_dir)
      )
      assert Path(file).name.endswith(".jpg")
  
imports: import importlib.resources
  import json
  import os
  import tempfile
  from copy import deepcopy
  from pathlib import Path
  from unittest.mock import MagicMock, patch
  import httpx
  import pytest
  from huggingface_hub import HfFolder
  from gradio_client import media_data, utils
label_desc: Use image node_id 7 for calling a global function with example usage: test_download_private_file(gradio_temp_dir) without return types