class_docstr: Random rotate and then crop the largest possible rectangle.
  Note that this will produce images of different shapes.
code: def _get_deg(self, img):
      deg = self._rand_range(-self.max_deg, self.max_deg)
      if self.step_deg:
          deg = deg // self.step_deg * self.step_deg
      return float(deg)
  
imports: import math
  import numpy
  import cv2
  from .base import ImageAugmentor
  from .transform import WarpAffineTransform, CropTransform, TransformList
label_desc: Use image node_id 2 for calling the RotationAndCropValid obj's underlying member method code with example usage: obj._get_deg(img) and returns: float