code: def safeArgs(args):
      
      return (arg for arg in args
              if arg is not None and not math.isnan(arg) and not math.isinf(arg))
docs: Iterate over valid, finite values in an iterable.
  
      Skip any items that are None, NaN, or infinite.