code: def test_maybe_download_wrong_bytes(caplog, files_fixtures):
      caplog.clear()
      caplog.set_level(logging.INFO)
  
      file_url, filepath = files_fixtures
      if os.path.exists(filepath):
          os.remove(filepath)
  
      with pytest.raises(IOError):
          filepath = maybe_download(
              file_url, "license.txt", expected_bytes=0
          )
          assert "Failed to verify license.txt" 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 3 for calling a global function with example usage: test_maybe_download_wrong_bytes(caplog, files_fixtures) without return types