code: def test_fetch_atlas_difumo(tmp_path, request_mocker):
      resolutions = [2, 3]  # Valid resolution values
      dimensions = [64, 128, 256, 512, 1024]  # Valid dimension values
      dimension_urls = ["pqu9r", "wjvd5", "3vrct", "9b76y", "34792"]
      url_mapping = dict(zip(dimensions, dimension_urls))
      for url_count, dim in enumerate(dimensions, start=2):
          url = f"*osf.io/{url_mapping[dim]}/*"
          labels = pd.DataFrame(
              {
                  "Component": list(range(1, dim + 1)),
                  "Difumo_names": ["" for _ in range(dim)],
                  "Yeo_networks7": ["" for _ in range(dim)],
                  "Yeo_networks17": ["" for _ in range(dim)],
                  "GM": ["" for _ in range(dim)],
                  "WM": ["" for _ in range(dim)],
                  "CSF": ["" for _ in range(dim)],
              }
          )
          root = Path(f"{dim}")
          archive = {
              root
              / f"labels_{dim}_dictionary.csv": labels.to_csv(
                  index=False
              ),
              root / "2mm" / "maps.nii.gz": "",
              root / "3mm" / "maps.nii.gz": "",
          }
          request_mocker.url_mapping[url] = dict_to_archive(
              archive, "zip"
          )
  
          for res in resolutions:
              dataset = atlas.fetch_atlas_difumo(
                  data_dir=tmp_path,
                  dimension=dim,
                  resolution_mm=res,
                  verbose=0,
              )
  
              assert len(dataset.keys()) == 3
              assert len(dataset.labels) == dim
              assert isinstance(dataset.maps, str)
              assert request_mocker.url_count == url_count
              assert dataset.description != ""
  
      with pytest.raises(ValueError):
          atlas.fetch_atlas_difumo(
              data_dir=tmp_path, dimension=42, resolution_mm=3
          )
          atlas.fetch_atlas_difumo(
              data_dir=tmp_path, dimension=128, resolution_mm=3.14
          )
  
imports: import itertools
  import os
  import re
  from pathlib import Path
  import nibabel
  import numpy
  import pandas
  import pytest
  from numpy.testing import assert_array_equal
  from nilearn._utils import data_gen
  from nilearn._utils.testing import serialize_niimg
  from nilearn.conftest import _rng
  from nilearn.datasets import atlas
  from nilearn.datasets._utils import fetch_files
  from nilearn.datasets.tests._testing import dict_to_archive
  from nilearn.image import get_data
label_desc: Use image node_id 17 for calling a global function with example usage: test_fetch_atlas_difumo(tmp_path, request_mocker) without return types