code: def rotate_images(tmpdir, rot):
      original_dimensions = (800, 800)
  
      im_tmp = tmpdir.mkdir("subfolder").join("test.JPEG")
      im = Image.new("RGB", original_dimensions)
      im.save(str(im_tmp), "JPEG")
  
      r = Operations.Rotate(probability=1, rotation=rot)
      im = [im]
      im_r = r.perform_operation(im)
  
      assert im_r is not None
      assert im_r[0].size == original_dimensions
  
file_path: Augmentor/tests/test_rotate.py
imports: import os
  import sys
  import tempfile
  import shutil
  from PIL import Image
  from Augmentor import Operations
label_desc: Use image node_id 1 for calling a global function with example usage: rotate_images(tmpdir, rot) without return types