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 extra_repr(self) -> str:
      return f"max_angle={self.max_angle}, expand={self.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 2 for calling the RandomRotate obj's underlying member method code with example usage: obj.extra_repr() and returns: str, self, str, self