code: def preprocess_for_eval(
      image_buffer, output_height, output_width, num_channels
  ):
      image = tf.image.decode_jpeg(image_buffer, channels=num_channels)
      image = _aspect_preserving_resize(image, _RESIZE_MIN)
      image = _central_crop(image, output_height, output_width)
      image.set_shape([output_height, output_width, num_channels])
      return _mean_image_subtraction(
          image, _CHANNEL_MEANS, num_channels
      )
  
file_path: BigDL/python/orca/example/learn/tf/inception/inception_preprocessing.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow.compat.v1
  from tensorflow.python.ops import control_flow_ops
  from bigdl.dllib.utils.log4Error import invalidInputError
label_desc: Use image node_id 7 for calling a global function with example usage: preprocess_for_eval(image_buffer, output_height, output_width, num_channels) and returns: _mean_image_subtraction