code: def remove_none_values(
      input_dict: Mapping[Any, Any]
  ) -> Dict[Any, Any]:
      """Remove all keys with None values from a dict."""
      new_dict = {}
      for key, val in input_dict.items():
          if isinstance(val, dict):
              val = remove_none_values(val)
          if val is not None:
              new_dict[key] = val
      return new_dict
  
imports: from typing import Any, Dict, Mapping, Optional
label_desc: Use image node_id 3 for calling a global function with example usage: remove_none_values(input_dict) and returns: new_dict