code: def _check_report_dims(report_size):
      """Warns user & reverts to default if report dimensions are non-numerical.
  
      Parameters
      ----------
      report_size : Tuple[int, int]
          Report width, height in jupyter notebook.
  
      Returns
      -------
      report_size : Tuple[int, int]
          Valid values for report width, height in jupyter notebook.
  
      """
      width, height = report_size
      try:
          width = int(width)
          height = int(height)
      except ValueError:
          warnings.warn(
              "Report size has invalid values. Using default 1600x800",
              stacklevel=3,
          )
          width, height = (1600, 800)
      return width, height
  
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 2 for calling a global function with example usage: _check_report_dims(report_size) and returns: width,  height