code: def __init__(self, catch_exceptions=False):
      self._nr_error = 0
      self.catch_exceptions = catch_exceptions
  
imports: import copy
  import numpy
  from contextlib import contextmanager
  from ..utils import logger
  from ..utils.argtools import shape2d
  from .base import RNGDataFlow
  from .common import MapData, MapDataComponent
label_desc: Use image node_id 1 to create a new ExceptionHandler object  with example: obj = ExceptionHandler(catch_exceptions)