code: def catch(self):
      try:
          yield
      except Exception:
          self._nr_error += 1
          if not self.catch_exceptions:
              raise
          else:
              if self._nr_error % 100 == 0 or self._nr_error < 10:
                  logger.exception(
                      "Got {} augmentation errors.".format(
                          self._nr_error
                      )
                  )
  
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 2 for calling the ExceptionHandler obj's underlying member method code with example usage: obj.catch() without return types