class_docstr: Base class for an augmentor
  
  ImageAugmentor should take images of type uint8 in range [0, 255], or
  floating point images in range [0, 1] or [0, 255].
  
  Attributes:
      rng: a numpy :class:`RandomState`
class_docstr_tok: ["Base","class","for","an","augmentor","ImageAugmentor","should","take","images","of","type","uint8","in","range","[","0",",","255","]",",","or","floating","point","images","in","range","[","0",",","1","]","or","[","0",",","255","]",".","Attributes",":","rng",":","a","numpy",":","class",":","`","RandomState","`"]
docstr: Create a transform, and apply it to augment the input image.
  
  This can save you one line of code, when you only care the augmentation of "one image".
  It will not return the :class:`Transform` object to you
  so you won't be able to apply the same transformation on
  other data associated with the image.
  
  Args:
      img (ndarray): see notes of this class on the requirements.
  
  Returns:
      img: augmented image.
docstr_tok: ["Create","a","transform",",","and","apply","it","to","augment","the","input","image",".","This","can","save","you","one","line","of","code",",","when","you","only","care","the","augmentation","of","``","one","image","''",".","It","will","not","return","the",":","class",":","`","Transform","`","object","to","you","so","you","wo","n't","be","able","to","apply","the","same","transformation","on","other","data","associated","with","the","image",".","Args",":","img","(","ndarray",")",":","see","notes","of","this","class","on","the","requirements",".","Returns",":","img",":","augmented","image","."]
code: def augment(self, img):
      """
      Create a transform, and apply it to augment the input image.
  
      This can save you one line of code, when you only care the augmentation of "one image".
      It will not return the :class:`Transform` object to you
      so you won't be able to apply the same transformation on
      other data associated with the image.
  
      Args:
          img (ndarray): see notes of this class on the requirements.
  
      Returns:
          img: augmented image.
      """
      check_dtype(img)
      t = self.get_transform(img)
      return t.apply_image(img)
  
imports: import os
  import inspect
  import pprint
  from collections import namedtuple
  import weakref
  from ...utils.argtools import log_once
  from ...utils.utils import get_rng
  from ...utils.develop import deprecated
  from ..image import check_dtype
label_desc: Use image node_id 7 for calling the ImageAugmentor obj's underlying member method code with example usage: obj.augment(img) and returns: t