code: def test_3d_functions(renderer):
      """Test figure management functions."""
      fig = renderer.create_3d_figure((300, 300))
      assert isinstance(fig, Figure3D)
      wrap_renderer = renderer.backend._Renderer(fig=fig)
      wrap_renderer.sphere(np.array([0.0, 0.0, 0.0]), "w", 1.0)
      renderer.backend._check_3d_figure(fig)
      renderer.set_3d_view(
          figure=fig,
          azimuth=None,
          elevation=None,
          focalpoint=(0.0, 0.0, 0.0),
          distance=None,
      )
      renderer.set_3d_title(figure=fig, title="foo")
      renderer.backend._take_3d_screenshot(figure=fig)
      renderer.close_3d_figure(fig)
      renderer.close_all_3d_figures()
  
file_path: mne-python/mne/viz/backends/tests/test_renderer.py
imports: import os
  import platform
  import sys
  import numpy
  import pytest
  from mne.utils import run_subprocess
  from mne.viz import Figure3D, get_3d_backend, set_3d_backend
  from mne.viz.backends._utils import ALLOWED_QUIVER_MODES
  from mne.viz.backends.renderer import _get_renderer
  from mne.viz.backends.tests._utils import skips_if_not_pyvistaqt
label_desc: Use image node_id 2 for calling a global function with example usage: test_3d_functions(renderer) without return types