class_docstr: Apply image augmentors on 1 image component.
docstr: Args:
      ds (DataFlow): input DataFlow.
      augmentors (AugmentorList): a list of :class:`imgaug.ImageAugmentor` to be applied in order.
      index (int or str): the index or key of the image component to be augmented in the datapoint.
      copy (bool): Some augmentors modify the input images. When copy is
          True, a copy will be made before any augmentors are applied,
          to keep the original images not modified.
          Turn it off to save time when you know it's OK.
      catch_exceptions (bool): when set to True, will catch
          all exceptions and only warn you when there are too many (>100).
          Can be used to ignore occasion errors in data.
docstr_tok: ["Args",":","ds","(","DataFlow",")",":","input","DataFlow",".","augmentors","(","AugmentorList",")",":","a","list","of",":","class",":","`","imgaug.ImageAugmentor","`","to","be","applied","in","order",".","index","(","int","or","str",")",":","the","index","or","key","of","the","image","component","to","be","augmented","in","the","datapoint",".","copy","(","bool",")",":","Some","augmentors","modify","the","input","images",".","When","copy","is","True",",","a","copy","will","be","made","before","any","augmentors","are","applied",",","to","keep","the","original","images","not","modified",".","Turn","it","off","to","save","time","when","you","know","it","'s","OK.","catch_exceptions","(","bool",")",":","when","set","to","True",",","will","catch","all","exceptions","and","only","warn","you","when","there","are","too","many","(",">","100",")",".","Can","be","used","to","ignore","occasion","errors","in","data","."]
code: def __init__(
      self, ds, augmentors, index=0, copy=True, catch_exceptions=False
  ):
      """
      Args:
          ds (DataFlow): input DataFlow.
          augmentors (AugmentorList): a list of :class:`imgaug.ImageAugmentor` to be applied in order.
          index (int or str): the index or key of the image component to be augmented in the datapoint.
          copy (bool): Some augmentors modify the input images. When copy is
              True, a copy will be made before any augmentors are applied,
              to keep the original images not modified.
              Turn it off to save time when you know it's OK.
          catch_exceptions (bool): when set to True, will catch
              all exceptions and only warn you when there are too many (>100).
              Can be used to ignore occasion errors in data.
      """
      if isinstance(augmentors, AugmentorList):
          self.augs = augmentors
      else:
          self.augs = AugmentorList(augmentors)
      self._copy = copy
  
      self._exception_handler = ExceptionHandler(catch_exceptions)
      super(AugmentImageComponent, self).__init__(
          ds, self._aug_mapper, index
      )
  
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 AugmentImageComponent object from inherited base classes: MapDataComponent with example: obj = AugmentImageComponent(ds, augmentors, index, copy, catch_exceptions)