code: def test_plot_roi_view_types(
      view_type, black_bg, threshold, alpha, display_mode, cut_coords
  ):
      """Smoke-test for plot_roi.
  
      Tests different combinations of parameters `view_type`, `black_bg`,
      `threshold`, and `alpha`.
      """
      kwargs = dict()
      if view_type == "contours":
          kwargs["linewidth"] = 2.0
      demo_plot_roi(
          view_type=view_type,
          black_bg=black_bg,
          threshold=threshold,
          alpha=alpha,
          display_mode=display_mode,
          cut_coords=cut_coords,
          **kwargs,
      )
      plt.close()
  
file_path: nilearn/nilearn/plotting/tests/test_img_plotting/test_plot_roi.py
imports: import matplotlib.pyplot
  import numpy
  import pytest
  from nibabel import Nifti1Image
  from nilearn.conftest import _affine_mni
  from nilearn.image.resampling import coord_transform
  from nilearn.plotting import plot_roi
label_desc: Use image node_id 2 for calling a global function with example usage: test_plot_roi_view_types(view_type, black_bg, threshold, alpha, display_mode, cut_coords) without return types