code: def test_joblib_cache(tmp_path):
      from joblib import hash
  
      # Dummy mask
      mask = np.zeros((40, 40, 40))
      mask[20, 20, 20] = 1
      mask_img = Nifti1Image(mask, np.eye(4))
  
      filename = write_imgs_to_path(
          mask_img, file_path=tmp_path, create_files=True
      )
      masker = MultiNiftiMasker(mask_img=filename)
      masker.fit()
      mask_hash = hash(masker.mask_img_)
      get_data(masker.mask_img_)
      assert mask_hash == hash(masker.mask_img_)
      # enables to delete "filename" on windows
      del masker
  
imports: import shutil
  from tempfile import mkdtemp
  import numpy
  import pytest
  from joblib import Memory
  from nibabel import Nifti1Image
  from numpy.testing import assert_array_equal
  from nilearn._utils.exceptions import DimensionError
  from nilearn._utils.testing import write_imgs_to_path
  from nilearn.conftest import _rng
  from nilearn.image import get_data
  from nilearn.maskers import MultiNiftiMasker
label_desc: Use image node_id 5 for calling a global function with example usage: test_joblib_cache(tmp_path) without return types