code: def test_maybe_download_maybe(caplog, files_fixtures):
      caplog.clear()
      caplog.set_level(logging.INFO)
  
      file_url, filepath = files_fixtures
      if os.path.exists(filepath):
          os.remove(filepath)
  
      downloaded_filepath = maybe_download(file_url, "license.txt")
      assert os.path.exists(downloaded_filepath)
      maybe_download(file_url, "license.txt")
      assert (
          "File ." + os.path.sep + "license.txt already downloaded"
          in caplog.text
      )
  
file_path: recommenders/tests/unit/recommenders/datasets/test_download_utils.py
imports: import os
  import pytest
  import requests
  import logging
  from tempfile import TemporaryDirectory
  from recommenders.datasets.download_utils import maybe_download, download_path
label_desc: Use image node_id 4 for calling a global function with example usage: test_maybe_download_maybe(caplog, files_fixtures) without return types