code: def test_nifti_maps_masker_report_image_in_fit(
      niftimapsmasker_inputs, affine_eye
  ):
      """Tests NiftiMapsMasker reporting with image provided to fit."""
      masker = NiftiMapsMasker(**niftimapsmasker_inputs)
      image, _ = generate_random_img((13, 11, 12, 3), affine=affine_eye)
      masker.fit(image)
      html = masker.generate_report(2)
      assert masker._report_content["report_id"] == 0
      assert masker._report_content["number_of_maps"] == 9
      assert masker._report_content["warning_message"] is None
      assert html.body.count("<img") == 2
  
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 15 for calling a global function with example usage: test_nifti_maps_masker_report_image_in_fit(niftimapsmasker_inputs, affine_eye) without return types