code: def test_nifti_spheres_masker_report_displayed_spheres_list():
      """Tests that spheres_to_be_displayed is set correctly."""
      displayed_spheres = [0, 1, 2]
      seeds = [(1, 1, 1), (2, 2, 2), (3, 3, 3)]
      masker = NiftiSpheresMasker(seeds=seeds)
      masker.fit()
      masker.generate_report(displayed_spheres=displayed_spheres)
      assert (
          masker._report_content["displayed_spheres"]
          == displayed_spheres
      )
  
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 18 for calling a global function with example usage: test_nifti_spheres_masker_report_displayed_spheres_list() without return types