code: def test_notebook_alignment(renderer_notebook, brain_gc, nbexec):
      """Test plot alignment in a notebook."""
      import pytest
  
      import mne
  
      with pytest.MonkeyPatch().context() as mp:
          mp.delenv("_MNE_FAKE_HOME_DIR")
          data_path = mne.datasets.testing.data_path(download=False)
      raw_fname = (
          data_path / "MEG" / "sample" / "sample_audvis_trunc_raw.fif"
      )
      subjects_dir = data_path / "subjects"
      subject = "sample"
      trans = (
          data_path / "MEG" / "sample" / "sample_audvis_trunc-trans.fif"
      )
      info = mne.io.read_info(raw_fname)
      mne.viz.set_3d_backend("notebook")
      fig = mne.viz.plot_alignment(
          info,
          trans,
          subject=subject,
          dig=True,
          meg=["helmet", "sensors"],
          subjects_dir=subjects_dir,
          surfaces=["head-dense"],
      )
      assert fig.display is not None
  
imports: import pytest
  from mne.datasets import testing
label_desc: Use image node_id 1 for calling a global function with example usage: test_notebook_alignment(renderer_notebook, brain_gc, nbexec) without return types