code: def test_coreg_gui_notebook(renderer_notebook, nbexec):
      """Test the coregistration UI in a notebook."""
      import pytest
  
      import mne
      from mne.datasets import testing
      from mne.gui import coregistration
  
      mne.viz.set_3d_backend("notebook")  # set the 3d backend
      with pytest.MonkeyPatch().context() as mp:
          mp.delenv("_MNE_FAKE_HOME_DIR")
          data_path = testing.data_path(download=False)
      subjects_dir = data_path / "subjects"
      coregistration(subject="sample", subjects_dir=subjects_dir)
  
imports: import os
  from contextlib import nullcontext
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_allclose
  import mne
  from mne._fiff.constants import FIFF
  from mne.channels import DigMontage
  from mne.coreg import Coregistration
  from mne.datasets import testing
  from mne.io import read_info
  from mne.io.kit.tests import data_dir
  from mne.utils import catch_logging, get_config
  from mne.viz import _3d
label_desc: Use image node_id 5 for calling a global function with example usage: test_coreg_gui_notebook(renderer_notebook, nbexec) without return types