class_docstr: Abstract generator class.
      
docstr: Resize an image using image_min_side and image_max_side.
          
code: def resize_image(self, image):
      """Resize an image using image_min_side and image_max_side."""
      if self.no_resize:
          return image, 1
      else:
          return resize_image(
              image,
              min_side=self.image_min_side,
              max_side=self.image_max_side,
          )
  
imports: import numpy
  import random
  import warnings
  from tensorflow import keras
  from ..utils.anchors import anchor_targets_bbox, anchors_for_shape, guess_shapes
  from ..utils.config import parse_anchor_parameters, parse_pyramid_levels
  from ..utils.image import TransformParameters, adjust_transform_for_image, apply_transform, preprocess_image, resize_image
  from ..utils.transform import transform_aabb
label_desc: Use image node_id 20 for calling the Generator obj's underlying member method code with example usage: obj.resize_image(image) and returns: image,  int, resize_image