code: def test_view_round_trip(
      renderer_interactive_pyvistaqt, tmp_path, brain_gc, align
  ):
      """Test get_view / set_view round-trip."""
      brain = _create_testing_brain(hemi="lh")
      img = brain.screenshot()
      roll, distance, azimuth, elevation, focalpoint = brain.get_view(
          align=align
      )
      brain.show_view(
          azimuth=azimuth,
          elevation=elevation,
          focalpoint=focalpoint,
          roll=roll,
          distance=distance,
          align=align,
      )
      img_1 = brain.screenshot()
      assert_allclose(img, img_1)
      _assert_view_allclose(
          brain, roll, distance, azimuth, elevation, focalpoint, align
      )
  
      # Now with custom values
      roll, distance, focalpoint = 1, 500, (1e-5, 1e-5, 1e-5)
      view_args = dict(
          roll=roll,
          distance=distance,
          focalpoint=focalpoint,
          align=align,
      )
      brain.show_view(**view_args)
      _assert_view_allclose(
          brain, roll, distance, azimuth, elevation, focalpoint, align
      )
  
      # test get_view
      azimuth, elevation = 180.0, 90.0
      view_args.update(azimuth=azimuth, elevation=elevation)
      brain.show_view(**view_args)
      _assert_view_allclose(
          brain, roll, distance, azimuth, elevation, focalpoint, align
      )
      brain.close()
  
imports: import os
  import platform
  from pathlib import Path
  from shutil import copyfile
  import numpy
  import pytest
  from matplotlib import image
  from matplotlib.lines import Line2D
  from numpy.testing import assert_allclose, assert_array_equal
  from mne import Dipole, MixedSourceEstimate, SourceEstimate, VolSourceEstimate, create_info, pick_types_forward, read_cov, read_evokeds, read_forward_solution, read_source_estimate, vertex_to_mni, write_surface
  from mne.channels import make_dig_montage
  from mne.datasets import testing
  from mne.io import read_info
  from mne.label import read_label
  from mne.minimum_norm import apply_inverse, make_inverse_operator
  from mne.source_estimate import _BaseSourceEstimate
  from mne.source_space import read_source_spaces, setup_volume_source_space
  from mne.utils import check_version
  from mne.viz import ui_events
  from mne.viz._brain import Brain, _BrainScraper, _LayeredMesh, _LinkViewer
  from mne.viz._brain.colormap import calculate_lut
  from mne.viz.utils import _get_cmap
label_desc: Use image node_id 7 for calling a global function with example usage: test_view_round_trip(renderer_interactive_pyvistaqt, tmp_path, brain_gc, align) without return types