code: def normalize_mult_factor(factor: float) -> float:
      assert (
          isinstance(factor, (float, int)) and factor >= 0
      ), "factor must be a non-negative number"
  
      if factor == 1:
          return 0.0
  
      return factor if factor >= 1 else 1 / factor
  
imports: from typing import Any, Dict, Optional, Union
  import numpy
  from augly.image import utils
  from PIL import Image
label_desc: Use image node_id 36 for calling a global function with example usage: normalize_mult_factor(factor) and returns: unknown, int