code: def __init__(self, output_shape, mode, align_corners):
      self.out_H = output_shape[0]
      self.out_W = output_shape[1]
      assert mode in ["bilinear", "nearest"]
      self.mode = mode
      self.align_corners = align_corners
  
imports: from __future__ import division
  import numpy
  from chainer import backend
  from chainer.backends import cuda
  from chainer import function_node
  from chainer.utils import type_check
label_desc: Use image node_id 1 to create a new ResizeImages object from inherited base classes: function_node with example: obj = ResizeImages(output_shape, mode, align_corners)