code: def test_4d_reports(mask, affine_eye):
      # Dummy 4D data
      data = np.zeros((10, 10, 10, 3), dtype="int32")
      data[..., 0] = 1
      data[..., 1] = 2
      data[..., 2] = 3
      data_img_4d = Nifti1Image(data, affine_eye)
  
      # test .fit method
      masker = NiftiMasker(mask_strategy="epi")
      masker.fit(data_img_4d)
      assert masker._report_content["warning_message"] is None
      html = masker.generate_report()
      _check_html(html)
  
      # test .fit_transform method
      masker = NiftiMasker(mask_img=mask, standardize=True)
      masker.fit_transform(data_img_4d)
      assert masker._report_content["warning_message"] is None
      html = masker.generate_report()
      _check_html(html)
  
imports: from collections import Counter
  import numpy
  import pytest
  from nibabel import Nifti1Image
  from numpy.testing import assert_almost_equal
  from nilearn._utils.data_gen import generate_fake_fmri, generate_labeled_regions, generate_maps, generate_random_img
  from nilearn.image import get_data, new_img_like
  from nilearn.maskers import MultiNiftiLabelsMasker, MultiNiftiMapsMasker, MultiNiftiMasker, NiftiLabelsMasker, NiftiMapsMasker, NiftiMasker, NiftiSpheresMasker
label_desc: Use image node_id 22 for calling a global function with example usage: test_4d_reports(mask, affine_eye) without return types