code: def test_get_view_plot_surf_plotly(full_view):
      from nilearn.plotting.surf_plotting import (
          _get_camera_view_from_elevation_and_azimut,
          _get_camera_view_from_string_view,
          _get_view_plot_surf_plotly,
      )
  
      hemi, view_name, (elev, azim), expected_camera_view = full_view
      camera_view = _get_view_plot_surf_plotly(hemi, view_name)
      camera_view_string = _get_camera_view_from_string_view(
          hemi, view_name
      )
      camera_view_elev_azim = (
          _get_camera_view_from_elevation_and_azimut((elev, azim))
      )
      # Check each camera view parameter
      for k in ["center", "eye", "up"]:
          # Check default camera view
          assert np.allclose(
              list(camera_view[k].values()),
              list(expected_camera_view[k].values()),
          )
          # Check camera view obtained from string view
          assert np.allclose(
              list(camera_view_string[k].values()),
              list(expected_camera_view[k].values()),
          )
          # Check camera view obtained from elevation & azimut
          assert np.allclose(
              list(camera_view_elev_azim[k].values()),
              list(expected_camera_view[k].values()),
          )
  
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 1 for calling a global function with example usage: test_get_view_plot_surf_plotly(full_view) without return types