code: def load_image_map_function(filename, frame_shape):
      image = tf.read_file(filename)
      image = tf.image.decode_png(image)
      image = tf.image.resize_images(image, frame_shape[0:2])
      image.set_shape(frame_shape)
      return image
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import numpy
  import six
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling a global function with example usage: load_image_map_function(filename, frame_shape) and returns: image