code: def test_fetch_atlas_pauli_2017(tmp_path, request_mocker):
      labels = pd.DataFrame(
          {"label": [f"label_{i}" for i in range(16)]}
      ).to_csv(sep="\t", header=False)
      det_atlas = data_gen.generate_labeled_regions((7, 6, 5), 16)
      prob_atlas, _ = data_gen.generate_maps((7, 6, 5), 16)
      request_mocker.url_mapping["*osf.io/6qrcb/*"] = labels
      request_mocker.url_mapping["*osf.io/5mqfx/*"] = det_atlas
      request_mocker.url_mapping["*osf.io/w8zq2/*"] = prob_atlas
      data_dir = str(tmp_path / "pauli_2017")
  
      data = atlas.fetch_atlas_pauli_2017("det", data_dir)
  
      assert data.description != ""
  
      assert len(data.labels) == 16
  
      values = get_data(nibabel.load(data.maps))
  
      assert len(np.unique(values)) == 17
  
      data = atlas.fetch_atlas_pauli_2017("prob", data_dir)
  
      assert nibabel.load(data.maps).shape[-1] == 16
  
      assert data.description != ""
  
      with pytest.raises(NotImplementedError):
          atlas.fetch_atlas_pauli_2017("junk for testing", data_dir)
  
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 29 for calling a global function with example usage: test_fetch_atlas_pauli_2017(tmp_path, request_mocker) without return types