code: def rotate(x, angle):
      angle = int(np.round((2 * angle - 1) * 45))
      return x.rotate(angle)
  
imports: import random
  from collections import namedtuple
  import numpy
  from PIL import Image, ImageOps, ImageEnhance, ImageFilter
label_desc: Use image node_id 17 for calling a global function with example usage: rotate(x, angle) and returns: x