class_docstr: Randomly crop the image into a smaller one 
class_docstr_tok: ["Randomly","crop","the","image","into","a","smaller","one"]
docstr: Args:
      crop_shape: (h, w), int or a tuple of int
docstr_tok: ["Args",":","crop_shape",":","(","h",",","w",")",",","int","or","a","tuple","of","int"]
code: def __init__(self, crop_shape):
      """
      Args:
          crop_shape: (h, w), int or a tuple of int
      """
      crop_shape = shape2d(crop_shape)
      crop_shape = (int(crop_shape[0]), int(crop_shape[1]))
      super(RandomCrop, self).__init__()
      self._init(locals())
  
imports: import numpy
  import cv2
  from ...utils.argtools import shape2d
  from ...utils.develop import log_deprecated
  from .base import ImageAugmentor, ImagePlaceholder
  from .transform import CropTransform, TransformList, ResizeTransform, PhotometricTransform
  from .misc import ResizeShortestEdge
label_desc: Use image node_id 1 to create a new RandomCrop object from inherited base classes: ImageAugmentor with example: obj = RandomCrop(crop_shape)