code: def resize_intensity_helper(metadata: Dict[str, Any]) -> float:
      """
      Computes intensity of any transform that resizes the src image. For these
      types of transforms the intensity is defined as the percentage of image
      area that has been cut out (if cropped/resized to smaller) or added (if
      padding/resized to bigger). When computing the percentage, the denominator
      should be the larger of the src & dst areas so the resulting percentage
      isn't greater than 100.
      """
      src_area = metadata["src_width"] * metadata["src_height"]
      dst_area = metadata["dst_width"] * metadata["dst_height"]
      larger_area = max(src_area, dst_area)
      return (abs(dst_area - src_area) / larger_area) * 100.0
  
imports: from typing import Any, Dict, Optional, Union
  import numpy
  from augly.image import utils
  from PIL import Image
label_desc: Use image node_id 39 for calling a global function with example usage: resize_intensity_helper(metadata) and returns: unknown