code: def replace_nans(
      series: List[Dict[str, Any]], keys: List[str]
  ) -> None:
      for s in series:
          for key in keys:
              if isinstance(s[key], list):
                  s[key] = [0 if math.isnan(x) else x for x in s[key]]
              else:
                  s[key] = 0 if math.isnan(s[key]) else s[key]
  
imports: import math
  from typing import List, Dict, Any
label_desc: Use image node_id 3 for calling a global function with example usage: replace_nans(series, keys) without return types