code: def clip_intensity(duration_factor: float = 1.0, **kwargs) -> float:
      assert (
          0 < duration_factor <= 1
      ), "duration_factor must be a number in (0, 1]"
  
      max_duration_factor = 1.0
      return min(
          (
              (max_duration_factor - duration_factor)
              / max_duration_factor
          )
          * 100.0,
          100.0,
      )
  
imports: from typing import Any, Callable, Dict, Optional, Tuple
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: clip_intensity(duration_factor) and returns: min