code: def char_insertion_intensity_helper(
      granularity: str, cadence: float
  ) -> float:
      return 100.0 if granularity == "all" else (1 / cadence) * 100.0
  
imports: from typing import Any, Dict, List, Optional, Union
label_desc: Use image node_id 20 for calling a global function with example usage: char_insertion_intensity_helper(granularity, cadence) and returns: unknown