code: def test_request_mocking_autoused_urllib():
      resp = request.urlopen("https://example.com")
  
      assert resp.__class__.__name__ == "MagicMock"
  
      req = request.Request("https://example.com")
      opener = request.build_opener()
      resp = opener.open(req)
  
      assert resp.__class__.__name__ == "MagicMock"
  
file_path: nilearn/nilearn/datasets/tests/test_mocking_autoused.py
imports: import os
  from pathlib import Path
  from urllib import request
  import requests
label_desc: Use image node_id 2 for calling a global function with example usage: test_request_mocking_autoused_urllib() without return types