code: def _aspect_preserving_resize(image, resize_min):
      shape = tf.shape(input=image)
      height, width = shape[0], shape[1]
  
      new_height, new_width = _smallest_size_at_least(
          height, width, resize_min
      )
  
      return _resize_image(image, new_height, new_width)
  
imports: import os
  import argparse
  import tensorflow
  from bigdl.dllib.utils.log4Error import invalidInputError
  from bigdl.orca import init_orca_context, stop_orca_context
label_desc: Use image node_id 5 for calling a global function with example usage: _aspect_preserving_resize(image, resize_min) and returns: _resize_image