code: def scale(img, small_size):
      """Scale the image to make the smaller side be at the give size
      This method is to replace original resize"""
      return resize(img, small_size)
  
imports: from __future__ import division
  from builtins import range
  from builtins import object
  import random
  import numpy
  from PIL import Image, ImageEnhance
  import math
label_desc: Use image node_id 5 for calling a global function with example usage: scale(img, small_size) and returns: resize