code: def test_random_rotation_transform() -> None:
      transform = random_rotation_transform(
          rr_prob=1.0, rr_degrees=None
      )
      assert isinstance(transform, RandomRotate)
      transform = random_rotation_transform(rr_prob=1.0, rr_degrees=45)
      assert isinstance(transform, RandomRotateDegrees)
      transform = random_rotation_transform(
          rr_prob=1.0, rr_degrees=(30, 45)
      )
      assert isinstance(transform, RandomRotateDegrees)
  
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 3 for calling a global function with example usage: test_random_rotation_transform() without return types