code: def test_splash_closed(tmp_path, renderer_interactive_pyvistaqt):
      """Test that the splash closes on error."""
      from mne.gui import coregistration
  
      with pytest.raises(RuntimeError, match="No standard head model"):
          coregistration(subjects_dir=tmp_path, subject="fsaverage")
  
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 7 for calling a global function with example usage: test_splash_closed(tmp_path, renderer_interactive_pyvistaqt) without return types