code: def change_aspect_ratio_intensity(
      ratio: float, metadata: Dict[str, Any], **kwargs
  ) -> float:
      assert (
          isinstance(ratio, (float, int)) and ratio > 0
      ), "ratio must be a positive number"
  
      current_ratio = metadata["src_width"] / metadata["src_height"]
      max_ratio_change = 10.0
      ratio_change = abs(ratio - current_ratio)
      return min((ratio_change / max_ratio_change) * 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 8 for calling a global function with example usage: change_aspect_ratio_intensity(ratio, metadata) and returns: min