code: def insert_in_background_multiple_intensity(
      metadata: Dict[str, Any], **kwargs
  ) -> float:
      """
      The intensity is calculated as the percentage of the result video
      that contains inserted segments.
      """
      dst_duration = metadata["dst_duration"]
      starts = metadata["src_segment_starts"]
      ends = metadata["src_segment_ends"]
      inserted = np.sum(ends - starts)
      return inserted / dst_duration
  
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 34 for calling a global function with example usage: insert_in_background_multiple_intensity(metadata) and returns: unknown