code: def test_download_data(tmpdir, file):
      download_path = "https://pl-flash-data.s3.amazonaws.com/"
      path = os.path.join(tmpdir, "data")
      download_data(download_path + file, path)
      assert "titanic" in set(os.listdir(path))
      assert file in set(os.listdir(path))
  
file_path: lightning-flash/tests/core/test_utils.py
imports: import os
  import pytest
  from flash.core.data.utils import download_data
  from flash.core.utilities.apply_func import get_callable_dict, get_callable_name
  from flash.core.utilities.imports import _TOPIC_CORE_AVAILABLE
label_desc: Use image node_id 4 for calling a global function with example usage: test_download_data(tmpdir, file) without return types