code: def test_sender_exception(request_mocker):
      request_mocker.url_mapping["*bad"] = _MyError("abc")
      with pytest.raises(_MyError, match="abc"):
          requests.get("ftp:example.org/bad")
  
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 5 for calling a global function with example usage: test_sender_exception(request_mocker) without return types