code: def _add_params_to_plot(table_details, stat_map_plot):
      """Insert thresholding parameters into the stat map plot \
      as figure suptitle.
  
      Parameters
      ----------
      table_details : Dict[String, Any]
          Dict of parameters and values used in thresholding.
  
      stat_map_plot : matplotlib.Axes
          Axes object of the stat map plot.
  
      Returns
      -------
      stat_map_plot : matplotlib.Axes
          Axes object of the stat map plot, with the added suptitle.
  
      """
      thresholding_params = [
          ":".join([name, str(val)])
          for name, val in table_details[0].items()
      ]
      thresholding_params = "  ".join(thresholding_params)
      suptitle_text = plt.suptitle(
          thresholding_params,
          fontsize=11,
          x=0.45,
          wrap=True,
      )
      fig = list(stat_map_plot.axes.values())[0].ax.figure
      _resize_plot_inches(
          plot=fig,
          width_change=0.2,
          height_change=1,
      )
      if stat_map_plot._black_bg:
          suptitle_text.set_color("w")
      return stat_map_plot
  
imports: import os
  import string
  import warnings
  from collections import OrderedDict
  from collections.abc import Iterable
  from html import escape
  import numpy
  import pandas
  from matplotlib import pyplot
  from nilearn.plotting import plot_glass_brain, plot_roi, plot_stat_map
  from nilearn.plotting.img_plotting import MNI152TEMPLATE
  from nilearn.plotting.matrix_plotting import plot_contrast_matrix, plot_design_matrix
  from nilearn.reporting.html_report import HTMLReport
  from .._utils import fill_doc
  from nilearn._utils import check_niimg
  from nilearn.maskers import NiftiMasker
  from nilearn.reporting.get_clusters_table import get_clusters_table
  from nilearn.reporting.utils import figure_to_svg_quoted
label_desc: Use image node_id 15 for calling a global function with example usage: _add_params_to_plot(table_details, stat_map_plot) and returns: stat_map_plot