code: def test_make_fetcher():
      symmetric362 = SPHERE_FILES["symmetric362"]
      with tempfile.TemporaryDirectory() as tmpdir:
          stored_md5 = fetcher._get_file_md5(symmetric362)
  
          # create local HTTP Server
          testfile_folder = op.split(symmetric362)[0] + os.sep
          testfile_url = "file:" + pathname2url(testfile_folder)
          test_server_url = "http://127.0.0.1:8000/"
          print(testfile_url)
          print(symmetric362)
          current_dir = os.getcwd()
          # change pwd to directory containing testfile.
          os.chdir(testfile_folder)
          server = HTTPServer(
              ("localhost", 8000), SimpleHTTPRequestHandler
          )
          server_thread = Thread(target=server.serve_forever)
          server_thread.daemon = True
          server_thread.start()
  
          # test make_fetcher
          sphere_fetcher = fetcher._make_fetcher(
              "sphere_fetcher",
              tmpdir,
              testfile_url,
              [op.sep + op.split(symmetric362)[-1]],
              ["sphere_name"],
              md5_list=[stored_md5],
          )
  
          try:
              sphere_fetcher()
          except Exception as e:
              print(e)
              # stop local HTTP Server
              server.shutdown()
  
          assert op.isfile(op.join(tmpdir, "sphere_name"))
          npt.assert_equal(
              fetcher._get_file_md5(op.join(tmpdir, "sphere_name")),
              stored_md5,
          )
  
          # stop local HTTP Server
          server.shutdown()
          # change to original working directory
          os.chdir(current_dir)
  
file_path: dipy/dipy/data/tests/test_fetcher.py
imports: from http.server import HTTPServer, SimpleHTTPRequestHandler
  import os
  import os.path
  from threading import Thread
  import tempfile
  from urllib.request import pathname2url
  import numpy.testing
  from dipy.data import SPHERE_FILES
  import dipy.data.fetcher
label_desc: Use image node_id 2 for calling a global function with example usage: test_make_fetcher() without return types