code: def get_transition_duration(kwargs):
      transition = kwargs.get("transition")
      if transition:
          return transition.duration
  
      return 0.0
  
file_path: AugLy/augly/video/helpers/metadata.py
imports: from copy import deepcopy
  from typing import Any, Dict, List, Optional, Tuple
  from augly import utils
  from augly.video import helpers
  from augly.video.helpers import intensity
label_desc: Use image node_id 5 for calling a global function with example usage: get_transition_duration(kwargs) and returns: int, transition