class_docstr: Rotate entire clip randomly by a random angle within
  given bounds
  
  Args:
  degrees (sequence or int): Range of degrees to select from
  If degrees is a number instead of sequence like (min, max),
  the range of degrees, will be (-degrees, +degrees).
class_docstr_tok: ["Rotate","entire","clip","randomly","by","a","random","angle","within","given","bounds","Args",":","degrees","(","sequence","or","int",")",":","Range","of","degrees","to","select","from","If","degrees","is","a","number","instead","of","sequence","like","(","min",",","max",")",",","the","range","of","degrees",",","will","be","(","-degrees",",","+degrees",")","."]
code: def __init__(self, degrees):
      if isinstance(degrees, numbers.Number):
          if degrees < 0:
              raise ValueError(
                  "If degrees is a single number," "must be positive"
              )
          degrees = (-degrees, degrees)
      else:
          if len(degrees) != 2:
              raise ValueError(
                  "If degrees is a sequence," "it must be of len 2."
              )
  
      self.degrees = degrees
  
imports: import numbers
  import random
  import numpy
  import PIL
  import torch
  import torchvision
  from .None import functional
label_desc: Use image node_id 1 to create a new RandomRotation object from inherited base classes: object with example: obj = RandomRotation(degrees)