code: def test_with_files(tmp_path):
      """Test standard masking with filenames."""
      data = np.zeros((40, 40, 40, 2))
      data[20, 20, 20] = 1
      data_img = nibabel.Nifti1Image(data, np.eye(4))
  
      filename = testing.write_imgs_to_path(
          data_img, file_path=tmp_path
      )
      masker = NiftiMasker()
      masker.fit(filename)
      masker.transform(filename)
  
imports: import os
  import shutil
  import warnings
  from tempfile import mkdtemp
  import nibabel
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from nilearn._utils import data_gen, exceptions, testing
  from nilearn._utils.class_inspect import get_params
  from nilearn.image import get_data, index_img
  from nilearn.maskers import NiftiMasker
  from nilearn.maskers.nifti_masker import _filter_and_mask
label_desc: Use image node_id 7 for calling a global function with example usage: test_with_files(tmp_path) without return types