code: def test_fetch_weights_zipped() -> None:
      weights_uri = "http://localhost:8080/weights.zip"
  
      # mock server
      raw_body = _random_body(zipped=True)
      responses.add(
          responses.GET,
          weights_uri,
          body=raw_body,
          status=200,
          stream=True,
          content_type="application/zip",
          headers={"Accept-Encoding": "gzip, deflate"},
      )
  
      expected_path = _expected_path(weights_uri)
  
      if os.path.exists(expected_path):
          shutil.rmtree(
              expected_path
          )  # make sure path does not exist already
  
      file_path = fetch_weights(weights_uri, unzip=True)
  
      exists_locally = os.path.exists(expected_path)
      assert exists_locally
      assert expected_path in file_path
  
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 2 for calling a global function with example usage: test_fetch_weights_zipped() without return types