code: def test_plot_surf_roi_colorbar_vmin_equal_across_engines(kwargs):
      """See issue https://github.com/nilearn/nilearn/issues/3944"""
      mesh = generate_surf()
      roi_map = np.arange(0, len(mesh[0]))
  
      mpl_plot = plot_surf_roi(
          mesh,
          roi_map=roi_map,
          colorbar=True,
          engine="matplotlib",
          **kwargs,
      )
      plotly_plot = plot_surf_roi(
          mesh,
          roi_map=roi_map,
          colorbar=True,
          engine="plotly",
          **kwargs,
      )
      assert (
          mpl_plot.axes[-1].get_ylim()[0]
          == plotly_plot.figure.data[1]["cmin"]
      )
  
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 29 for calling a global function with example usage: test_plot_surf_roi_colorbar_vmin_equal_across_engines(kwargs) without return types