code: def test_warning_in_report_after_empty_fit(
      masker_class, input_parameters
  ):
      """Tests that a warning is both given and written in the report if
      no images were provided to fit.
      """
      masker = masker_class(**input_parameters)
      assert masker._report_content["warning_message"] is None
      masker.fit()
      warn_message = (
          f"No image provided to fit in {masker_class.__name__}."
      )
      with pytest.warns(UserWarning, match=warn_message):
          html = masker.generate_report()
      assert warn_message in masker._report_content["warning_message"]
      _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 10 for calling a global function with example usage: test_warning_in_report_after_empty_fit(masker_class, input_parameters) without return types