code: def test_fetch_weights_returns_404() -> None:
      weights_uri = "http://down:8080/weights.zip"
  
      # mock server
      responses.add(responses.GET, weights_uri, status=404)
  
      expected_path = _expected_path(weights_uri)
  
      if os.path.exists(expected_path):
          shutil.rmtree(
              expected_path
          )  # make sure path does not exist already
  
      with pytest.raises(RuntimeError):
          fetch_weights(weights_uri, unzip=False)
  
file_path: foolbox/tests/test_fetch_weights.py
imports: from foolbox.zoo import fetch_weights
  from foolbox.zoo.common import home_directory_path, sha256_hash
  from foolbox.zoo.weights_fetcher import FOLDER
  import os
  import pytest
  import shutil
  import responses
  import io
  import zipfile
label_desc: Use image node_id 3 for calling a global function with example usage: test_fetch_weights_returns_404() without return types