code: def test_rotate_images_custom_temp_files():
      original_dimensions = (800, 800)
  
      tmpdir = tempfile.mkdtemp()
      tmp = tempfile.NamedTemporaryFile(
          dir=tmpdir, suffix=".JPEG", delete=False
      )
      im = Image.new("RGB", original_dimensions)
      im.save(tmp.name, "JPEG")
  
      r = Operations.Rotate(probability=1, rotation=90)
      im = [im]
      im_r = r.perform_operation(im)
  
      assert im_r is not None
      assert im_r[0].size == original_dimensions
  
      tmp.close()
      shutil.rmtree(tmpdir)
  
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 5 for calling a global function with example usage: test_rotate_images_custom_temp_files() without return types