code: def overlay_intensity(
      overlay_size: Optional[float],
      overlay_path: str,
      metadata: Dict[str, Any],
      **kwargs,
  ) -> float:
      assert overlay_size is None or (
          isinstance(overlay_size, (float, int))
          and 0 < overlay_size <= 1
      ), "overlay_size must be a value in the range (0, 1]"
      if overlay_size is not None:
          return (overlay_size**2) * 100.0
  
      try:
          img = imutils.validate_and_load_image(overlay_path)
          overlay_area = img.width * img.height
      except Exception:
          video_info = get_video_info(overlay_path)
          overlay_area = video_info["width"] * video_info["height"]
      src_area = metadata["src_width"] * metadata["src_height"]
      return min((overlay_area / src_area) * 100.0, 100.0)
  
imports: from typing import Any, Dict, List, Optional, Tuple
  import numpy
  from augly.image import intensity, utils
  from augly.video.helpers import get_video_info
label_desc: Use image node_id 23 for calling a global function with example usage: overlay_intensity(overlay_size, overlay_path, metadata) and returns: min, unknown