code: def test_configure_title_plotly():
      from nilearn.plotting.surf_plotting import _configure_title_plotly
  
      assert _configure_title_plotly(None, None) == dict()
      assert _configure_title_plotly(None, 22) == dict()
      config = _configure_title_plotly("Test Title", 22, color="green")
      assert config["text"] == "Test Title"
      assert config["x"] == 0.5
      assert config["y"] == 0.96
      assert config["xanchor"] == "center"
      assert config["yanchor"] == "top"
      assert config["font"]["size"] == 22
      assert config["font"]["color"] == "green"
  
imports: import re
  import tempfile
  import unittest.mock
  import matplotlib.pyplot
  import numpy
  import pytest
  from matplotlib.figure import Figure
  from numpy.testing import assert_array_equal
  from nilearn._utils.helpers import is_kaleido_installed, is_plotly_installed
  from nilearn.conftest import _rng
  from nilearn.datasets import fetch_surf_fsaverage
  from nilearn.plotting.displays import PlotlySurfaceFigure
  from nilearn.plotting.surf_plotting import VALID_HEMISPHERES, VALID_VIEWS, _compute_facecolors_matplotlib, _get_ticks_matplotlib, _get_view_plot_surf_matplotlib, _get_view_plot_surf_plotly, plot_img_on_surf, plot_surf, plot_surf_contours, plot_surf_roi, plot_surf_stat_map
  from nilearn.surface import load_surf_data, load_surf_mesh
  from nilearn.surface.tests._testing import generate_surf
label_desc: Use image node_id 15 for calling a global function with example usage: test_configure_title_plotly() without return types