code: def test_sender_img(request_mocker, tmp_path):
      request_mocker.url_mapping["*"] = generate_fake_fmri()[0]
      resp = requests.get("ftp:example.org/download")
      file_path = tmp_path / "img.nii.gz"
      file_path.write_bytes(resp.content)
      img = image.load_img(str(file_path))
  
      assert img.shape == (10, 11, 12, 17)
  
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 6 for calling a global function with example usage: test_sender_img(request_mocker, tmp_path) without return types