code: def time_crop_or_pad_intensity_helper(
      metadata: Dict[str, Any]
  ) -> float:
      """
      Computes intensity of a transform that consists of temporal cropping or
      padding. For these types of transforms the intensity is defined as the
      percentage of video time that has been cut out (for cropping) or added
      (for padding). When computing the percentage, the denominator should be
      the longer of the src & dst durations so the resulting percentage isn't
      greater than 100.
      """
      dst_duration = metadata["dst_duration"]
      src_duration = metadata["src_duration"]
      larger_duration = max(src_duration, dst_duration)
      return (
          abs(dst_duration - src_duration) / larger_duration
      ) * 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 47 for calling a global function with example usage: time_crop_or_pad_intensity_helper(metadata) and returns: unknown