code: def tempo_intensity(factor: float = 2.0, **kwargs) -> float:
      assert (
          isinstance(factor, (float, int)) and factor > 0
      ), "factor must be a positive number"
  
      if factor == 1.0:
          return 0.0
      max_factor_val = 10.0
      speed_change_factor = factor if factor >= 1 else 1 / factor
      return min((speed_change_factor / max_factor_val) * 100.0, 100.0)
  
imports: from typing import Any, Callable, Dict, Optional, Tuple
  import numpy
label_desc: Use image node_id 18 for calling a global function with example usage: tempo_intensity(factor) and returns: min, int