code: def make_rotated_img_list(rotationInfo, img_list):
      result_img_list = img_list[:]
  
      # add rotated images to original image_list
      max_ratio = 1
  
      for angle in rotationInfo:
          for img_info in img_list:
              rotated = ndimage.rotate(img_info[1], angle, reshape=True)
              height, width = rotated.shape
              ratio = calculate_ratio(width, height)
              max_ratio = max(max_ratio, ratio)
              result_img_list.append((img_info[0], rotated))
      return result_img_list
  
imports: from __future__ import print_function
  import torch
  import pickle
  import numpy
  import math
  import cv2
  from PIL import Image, JpegImagePlugin
  from scipy import ndimage
  import hashlib
  import sys, os
  from zipfile import ZipFile
  from .imgproc import loadImage
label_desc: Use image node_id 21 for calling a global function with example usage: make_rotated_img_list(rotationInfo, img_list) and returns: result_img_list