code: def __init__(self, angle, resample=False, expand=False, center=None):
      super(Rotation, self).__init__()
      if isinstance(angle, (list, tuple)):
          self._angles = angle
          self.angle = None
      else:
          self._angles = [angle]
          self.angle = angle
          if angle % 360 == 0:
              import warnings
  
              warnings.warn(
                  "Applying a rotation of {0} degrees (`{1}`) as a "
                  "class augmentation on a dataset is equivalent to the original "
                  "dataset.".format(angle, self),
                  UserWarning,
                  stacklevel=2,
              )
  
      self.resample = resample
      self.expand = expand
      self.center = center
  
file_path: pytorch-meta/torchmeta/transforms/augmentations.py
imports: import torchvision.transforms.functional
label_desc: Use image node_id 1 to create a new Rotation object from inherited base classes: object with example: obj = Rotation(angle, resample, expand, center)