class_docstr: This method returns a copy of this image, rotated the given
  number of degrees counter clockwise around its center.
docstr: Args:
      h, w (int): original image size
      angle (float): degrees for rotation
      expand (bool): choose if the image should be resized to fit the whole
          rotated image (default), or simply cropped
      center (tuple (width, height)): coordinates of the rotation center
          if left to None, the center will be fit to the center of each image
          center has no effect if expand=True because it only affects shifting
      interp: cv2 interpolation method, default cv2.INTER_LINEAR
code: def __init__(
      self, h, w, angle, expand=True, center=None, interp=None
  ):
      """
      Args:
          h, w (int): original image size
          angle (float): degrees for rotation
          expand (bool): choose if the image should be resized to fit the whole
              rotated image (default), or simply cropped
          center (tuple (width, height)): coordinates of the rotation center
              if left to None, the center will be fit to the center of each image
              center has no effect if expand=True because it only affects shifting
          interp: cv2 interpolation method, default cv2.INTER_LINEAR
      """
      super().__init__()
      image_center = np.array((w / 2, h / 2))
      if center is None:
          center = image_center
      if interp is None:
          interp = cv2.INTER_LINEAR
      abs_cos, abs_sin = (
          abs(np.cos(np.deg2rad(angle))),
          abs(np.sin(np.deg2rad(angle))),
      )
      if expand:
          # find the new width and height bounds
          bound_w, bound_h = np.rint(
              [h * abs_sin + w * abs_cos, h * abs_cos + w * abs_sin]
          ).astype(int)
      else:
          bound_w, bound_h = w, h
  
      self._set_attributes(locals())
      self.rm_coords = self.create_rotation_matrix()
      # Needed because of this problem https://github.com/opencv/opencv/issues/11784
      self.rm_image = self.create_rotation_matrix(offset=-0.5)
  
imports: import numpy
  import torch
  import torch.nn.functional
  from fvcore.transforms.transform import CropTransform, HFlipTransform, NoOpTransform, Transform, TransformList
  from PIL import Image
label_desc: Use image node_id 1 to create a new RotationTransform object from inherited base classes: Transform with example: obj = RotationTransform(h, w, angle, expand, center, interp)