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"
  
      if ratio == metadata["src_width"] / metadata["src_height"]:
          return 0.0
      max_ratio = 10.0
      ratio = ratio if ratio >= 1 else 1 / ratio
      return min((ratio / max_ratio) * 100.0, 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 5 for calling a global function with example usage: change_aspect_ratio_intensity(ratio, metadata) and returns: min, int