code: def use_3d_backend(backend_name):
      """Create a 3d visualization context using the designated backend.
  
      See :func:`mne.viz.set_3d_backend` for more details on the available
      3d backends and their capabilities.
  
      Parameters
      ----------
      backend_name : {'pyvistaqt', 'notebook'}
          The 3d backend to use in the context.
      """
      old_backend = set_3d_backend(backend_name)
      try:
          yield
      finally:
          if old_backend is not None:
              try:
                  set_3d_backend(old_backend)
              except Exception:
                  pass
  
imports: import importlib
  import time
  from contextlib import contextmanager
  from functools import partial
  import numpy
  from ...utils import _auto_weakref, _check_option, _validate_type, fill_doc, get_config, logger, verbose
  from .._3d import _get_3d_option
  from ..utils import safe_event
  from ._utils import VALID_3D_BACKENDS
label_desc: Use image node_id 8 for calling a global function with example usage: use_3d_backend(backend_name) without return types