code: def affine_warp(im, data):
      """Applies affine transform to image."""
      return im.transform(im.size, Image.AFFINE, data, **WARP_PARAMS)
  
file_path: pycls/pycls/datasets/augment.py
imports: import random
  import numpy
  from PIL import Image, ImageEnhance, ImageOps
label_desc: Use image node_id 1 for calling a global function with example usage: affine_warp(im, data) and returns: im