code: def test_request_mocking_autoused_requests():
      assert (
          requests.sessions.Session.send.__class__.__name__ == "Sender"
      )
      assert requests.sessions.Session.send.is_mock
  
      resp = requests.get("https://example.com")
  
      assert resp.is_mock
  
      resp = requests.post("https://example.com", data={"key": "value"})
  
      assert resp.is_mock
  
      session = requests.Session()
      req = requests.Request("GET", "https://example.com")
      prepped = session.prepare_request(req)
      resp = session.send(prepped)
  
      assert resp.is_mock
  
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 1 for calling a global function with example usage: test_request_mocking_autoused_requests() without return types