code: def resize_images(
      images, size, method="bilinear", align_corners=False
  ):
      """See https://www.tensorflow.org/versions/r1.14/api_docs/python/tf/image/resize_images .
  
      Args
          method: The method used for interpolation. One of ('bilinear', 'nearest', 'bicubic', 'area').
      """
      methods = {
          "bilinear": tensorflow.image.ResizeMethod.BILINEAR,
          "nearest": tensorflow.image.ResizeMethod.NEAREST_NEIGHBOR,
          "bicubic": tensorflow.image.ResizeMethod.BICUBIC,
          "area": tensorflow.image.ResizeMethod.AREA,
      }
      return tensorflow.compat.v1.image.resize_images(
          images, size, methods[method], align_corners
      )
  
imports: import tensorflow
  from tensorflow import keras
label_desc: Use image node_id 4 for calling a global function with example usage: resize_images(images, size, method, align_corners) and returns: tensorflow