code: def test_sender_response(request_mocker):
      request_mocker.url_mapping["*example.org/a"] = _MyResponse("", "")
  
      def f(match, request):
          resp = _testing.Response(b"hello", request.url)
          resp.headers["cookie"] = "abc"
          return resp
  
      request_mocker.url_mapping["*example.org/b"] = f
      resp = requests.get("https://example.org/a")
  
      assert resp.json() == '{"count": 1}'
  
      resp = requests.get("https://example.org/b")
  
      assert resp.headers["cookie"] == "abc"
  
imports: import re
  import tarfile
  import zipfile
  from pathlib import Path
  import pytest
  import requests
  from nilearn import image
  from nilearn._utils.data_gen import generate_fake_fmri
  from nilearn.datasets.tests import _testing
label_desc: Use image node_id 7 for calling a global function with example usage: test_sender_response(request_mocker) and returns: resp