code: def _get_small_fake_talairach():
      labels = ["*", "b", "a"]
      all_labels = itertools.product(*(labels,) * 5)
      labels_txt = "\n".join(map(".".join, all_labels))
      extensions = nibabel.nifti1.Nifti1Extensions(
          [
              nibabel.nifti1.Nifti1Extension(
                  "afni", labels_txt.encode("utf-8")
              )
          ]
      )
      img = nibabel.Nifti1Image(
          np.arange(243, dtype="int32").reshape((3, 9, 9)),
          np.eye(4),
          nibabel.Nifti1Header(extensions=extensions),
      )
      return serialize_niimg(img, gzipped=False)
  
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 27 for calling a global function with example usage: _get_small_fake_talairach() and returns: serialize_niimg