code: def _resize_image(image, height, width):
      """Simple wrapper around tf.resize_images.
  
      This is primarily to make sure we use the same `ResizeMethod` and other
      details each time.
  
      Args:
        image: A 3-D image `Tensor`.
        height: The target height for the resized image.
        width: The target width for the resized image.
  
      Returns:
        resized_image: A 3-D tensor containing the resized image. The first two
          dimensions have the shape [height, width].
      """
      return tf.compat.v1.image.resize(
          image,
          [height, width],
          method=tf.image.ResizeMethod.BILINEAR,
          align_corners=False,
      )
  
file_path: autodist/examples/benchmark/utils/imagenet_preprocessing.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl import logging
  import tensorflow
label_desc: Use image node_id 11 for calling a global function with example usage: _resize_image(image, height, width) and returns: tf