class_docstr: Randomly rotate a tensor image and its boxes
  
  .. image:: https://doctr-static.mindee.com/models?id=v0.4.0/rotation_illustration.png&src=0
      :align: center
  
  Args:
  ----
      max_angle: maximum angle for rotation, in degrees. Angles will be uniformly picked in
          [-max_angle, max_angle]
      expand: whether the image should be padded before the rotation
code: def __init__(
      self, max_angle: float = 5.0, expand: bool = False
  ) -> None:
      self.max_angle = max_angle
      self.expand = expand
  
imports: import math
  import random
  from typing import Any, Callable, Dict, List, Optional, Tuple, Union
  import numpy
  from doctr.utils.repr import NestedObject
  from ..None import functional
label_desc: Use image node_id 1 to create a new RandomRotate object from inherited base classes: NestedObject with example: obj = RandomRotate(max_angle, expand)