class_docstr: Random Rotate Image
  Args:
      scale (float, tuple, list): rotate scale
      scale_mode (str): mode of scale, [range, value, None]
      angle (float, tuple, list): rotate angle
      angle_mode (str): mode of angle, [range, value, None]
      fill_value (float, tuple, list): fill value
      rotate_prob (float): probability of rotation
      auto_bound (bool): whether auto bound or not
class_docstr_tok: ["Random","Rotate","Image","Args",":","scale","(","float",",","tuple",",","list",")",":","rotate","scale","scale_mode","(","str",")",":","mode","of","scale",",","[","range",",","value",",","None","]","angle","(","float",",","tuple",",","list",")",":","rotate","angle","angle_mode","(","str",")",":","mode","of","angle",",","[","range",",","value",",","None","]","fill_value","(","float",",","tuple",",","list",")",":","fill","value","rotate_prob","(","float",")",":","probability","of","rotation","auto_bound","(","bool",")",":","whether","auto","bound","or","not"]
code: def __init__(
      self,
      scale=1.0,
      scale_mode=None,
      angle=0.0,
      angle_mode=None,
      fill_value=0.0,
      rotate_prob=1.0,
      auto_bound=True,
  ):
      super(RandomRRotate, self).__init__()
      self.scale = scale
      self.scale_mode = scale_mode
      self.angle = angle
      self.angle_mode = angle_mode
      self.fill_value = fill_value
      self.rotate_prob = rotate_prob
      self.auto_bound = auto_bound
  
imports: from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import division
  from numbers import Number, Integral
  import cv2
  import numpy
  import math
  import copy
  from .operators import register_op, BaseOperator
  from ppdet.modeling.rbox_utils import poly2rbox_le135_np, poly2rbox_oc_np, rbox2poly_np
  from ppdet.utils.logger import setup_logger
  from ppdet.utils.compact import imagedraw_textsize_c
label_desc: Use image node_id 1 to create a new RandomRRotate object from inherited base classes: BaseOperator with example: obj = RandomRRotate(scale, scale_mode, angle, angle_mode, fill_value, rotate_prob, auto_bound)