code: def test_fetch_atlas_aal(
      version,
      archive_format,
      url_key,
      aal_archive_root,
      tmp_path,
      request_mocker,
  ):
      metadata = "A\tB\tC\n"
      if version == "SPM12":
          metadata = (
              b"<?xml version='1.0' encoding='us-ascii'?>"
              b"<metadata><label><index>1</index>"
              b"<name>A</name></label></metadata>"
          )
      label_file = "AAL.xml" if version == "SPM12" else "ROI_MNI_V4.txt"
      atlas_file = "AAL.nii" if version == "SPM12" else "ROI_MNI_V4.nii"
      aal_data = dict_to_archive(
          {
              aal_archive_root / label_file: metadata,
              aal_archive_root / atlas_file: "",
          },
          archive_format=archive_format,
      )
      request_mocker.url_mapping[f"*{url_key}*"] = aal_data
      dataset = atlas.fetch_atlas_aal(
          version=version, data_dir=tmp_path, verbose=0
      )
  
      assert isinstance(dataset.maps, str)
      assert isinstance(dataset.labels, list)
      assert isinstance(dataset.indices, list)
      assert request_mocker.url_count == 1
      assert dataset.description != ""
  
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 19 for calling a global function with example usage: test_fetch_atlas_aal(version, archive_format, url_key, aal_archive_root, tmp_path, request_mocker) without return types