class_docstr: Context manager to temporarily catch VTK errors.
  
  Parameters
  ----------
  raise_errors : bool, default: False
      Raise a ``RuntimeError`` when a VTK error is encountered.
  
  send_to_logging : bool, default: True
      Determine whether VTK errors raised within the context should
      also be sent to logging.
  
  Examples
  --------
  Catch VTK errors using the context manager.
  
  >>> import pyvista as pv
  >>> with pv.VtkErrorCatcher() as error_catcher:
  ...     sphere = pv.Sphere()
  ...
docstr: Stop observing VTK string output window.
docstr_tok: ["Stop","observing","VTK","string","output","window","."]
code: def __exit__(self, *args):
      """Stop observing VTK string output window."""
      error_win = _vtk.vtkOutputWindow()
      error_win.SetInstance(self._error_output_orig)
      self.events = self._observer.event_history
      if self.raise_errors and self.events:
          errors = [
              RuntimeError(f"{e.kind}: {e.alert}", e.path, e.address)
              for e in self.events
          ]
          raise RuntimeError(errors)
  
imports: import collections
  import logging
  import os
  import re
  import signal
  import sys
  import threading
  import traceback
  from pyvista.core import _vtk_core
label_desc: Use image node_id 3 for calling the VtkErrorCatcher obj's underlying member method code with example usage: obj.__exit__() without return types