code: def _resize_image(
      self, image_array, boxes_array=None, min_size=None, max_size=None
  ):
      image = tf.placeholder(tf.float32, image_array.shape)
      feed_dict = {
          image: image_array,
      }
      if boxes_array is not None:
          boxes = tf.placeholder(tf.float32, boxes_array.shape)
          feed_dict[boxes] = boxes_array
      else:
          boxes = None
      resized = resize_image(
          image, bboxes=boxes, min_size=min_size, max_size=max_size
      )
      with self.test_session() as sess:
          resized_dict = sess.run(resized, feed_dict=feed_dict)
          return (
              resized_dict["image"],
              resized_dict.get("bboxes"),
              resized_dict.get("scale_factor"),
          )
  
imports: import numpy
  import tensorflow
  from easydict import EasyDict
  from luminoth.utils.image import resize_image, flip_image, random_patch, random_resize, random_distortion, patch_image
  from luminoth.utils.test.gt_boxes import generate_gt_boxes
label_desc: Use image node_id 4 for calling the ImageTest obj's underlying member method code with example usage: obj._resize_image(image_array, boxes_array, min_size, max_size) and returns: resized_dict,  resized_dict,  resized_dict