class_docstr: A context manager that will catch certain exceptions and provide an
  indication they occurred.
  
  >>> with ExceptionTrap() as trap:
  ...     raise Exception()
  >>> bool(trap)
  True
  
  >>> with ExceptionTrap() as trap:
  ...     pass
  >>> bool(trap)
  False
  
  >>> with ExceptionTrap(ValueError) as trap:
  ...     raise ValueError("1 + 1 is not 3")
  >>> bool(trap)
  True
  >>> trap.value
  ValueError('1 + 1 is not 3')
  >>> trap.tb
  <traceback object at ...>
  
  >>> with ExceptionTrap(ValueError) as trap:
  ...     raise Exception()
  Traceback (most recent call last):
  ...
  Exception
  
  >>> bool(trap)
  False
code: def __bool__(self):
      return bool(self.type)
  
imports: import os
  import subprocess
  import contextlib
  import functools
  import tempfile
  import shutil
  import operator
  import warnings
label_desc: Use image node_id 7 for calling the ExceptionTrap obj's underlying member method code with example usage: obj.__bool__() and returns: bool