class_docstr: The cutout augmentation, as described in https://arxiv.org/abs/1708.04552
class_docstr_tok: ["The","cutout","augmentation",",","as","described","in","https",":","\/\/arxiv.org\/abs\/1708.04552"]
code: def get_transform(self, img):
      h, w = self._get_cutout_shape()
      x0 = self.rng.randint(0, img.shape[1] + 1 - w)
      y0 = self.rng.randint(0, img.shape[0] + 1 - h)
      return PhotometricTransform(
          lambda img: RandomCutout._cutout(
              img, y0, x0, h, w, self.fill
          ),
          "cutout",
      )
  
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 4 for calling the RandomCutout obj's underlying member method code with example usage: obj.get_transform(img) and returns: PhotometricTransform