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: Initialize context manager.
docstr_tok: ["Initialize","context","manager","."]
code: def __init__(self, raise_errors=False, send_to_logging=True):
      """Initialize context manager."""
      self.raise_errors = raise_errors
      self.send_to_logging = send_to_logging
  
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 1 to create a new VtkErrorCatcher object  with example: obj = VtkErrorCatcher(raise_errors, send_to_logging)