code: def test_RandomRotateDegrees_on_pil_image() -> None:
      all_degrees: List[Union[float, Tuple[float, float]]] = [
          0,
          1,
          45,
          (0, 0),
          (-15, 30),
      ]
      for degrees in all_degrees:
          random_rotate = RandomRotateDegrees(prob=0.5, degrees=degrees)
          sample = Image.new("RGB", (100, 100))
          random_rotate(sample)
  
imports: from typing import List, Tuple, Union
  from PIL import Image
  from lightly.transforms.rotation import RandomRotate, RandomRotateDegrees, random_rotation_transform
label_desc: Use image node_id 2 for calling a global function with example usage: test_RandomRotateDegrees_on_pil_image() without return types