code: def _screenshot_mode(browser):
      if hasattr(
          browser.mne, "toolbar"
      ):  # if there is an error, it might not
          browser.mne.toolbar.setVisible(False)
      browser.statusBar().setVisible(False)
      try:
          yield
      finally:
          if hasattr(browser.mne, "toolbar"):
              browser.mne.toolbar.setVisible(True)
          browser.statusBar().setVisible(True)
  
imports: from contextlib import contextmanager
  from ..utils import _pl
  from .backends._utils import _pixmap_to_ndarray
label_desc: Use image node_id 1 for calling a global function with example usage: _screenshot_mode(browser) without return types