code: def test_stat_map_to_svg_invalid_plot_type(img_3d_mni, cut_coords):
      expected_error = (
          "Invalid plot type provided. "
          "Acceptable options are 'slice' or 'glass'."
      )
      with pytest.raises(ValueError, match=expected_error):
          glmr._stat_map_to_svg(
              stat_img=img_3d_mni,
              bg_img=None,
              cut_coords=cut_coords,
              display_mode="z",
              plot_type="junk",
              table_details={"junk": 0},
          )
  
imports: import numpy
  import pandas
  import pytest
  from nibabel import load
  from nilearn._utils.data_gen import write_fake_fmri_data_and_design
  from nilearn.glm.first_level import FirstLevelModel
  from nilearn.glm.first_level.design_matrix import make_first_level_design_matrix
  from nilearn.glm.second_level import SecondLevelModel
  from nilearn.maskers import NiftiMasker
  from nilearn.reporting import glm_reporter
label_desc: Use image node_id 20 for calling a global function with example usage: test_stat_map_to_svg_invalid_plot_type(img_3d_mni, cut_coords) without return types