code: def replace_with_color_frames_intensity(
      duration_factor: float, offset_factor: float, **kwargs
  ) -> float:
      assert (
          isinstance(duration_factor, (float, int))
          and 0 <= duration_factor <= 1
      ), "duration_factor must be a number in [0, 1]"
      assert (
          isinstance(offset_factor, (float, int))
          and 0 <= offset_factor <= 1
      ), "offset_factor must be a number in [0, 1]"
      # The proportion of the video that is replaced by color frames is generally
      # equal to duration factor, unless offset_factor + duration_factor > 1, in
      # which case it will be 1 - offset_factor.
      return min(duration_factor, 1 - offset_factor) * 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 36 for calling a global function with example usage: replace_with_color_frames_intensity(duration_factor, offset_factor) and returns: unknown