input: from typing import Any, Dict
  
  def findMaxValue(dict: Dict[str, Any]) -> int:
      """
      This function finds the maximum value within a nested dictionary.
      >>> findMaxValue({"key1": {"value1": 10, "value2": 20}, "key2": {"value3": 40}})
      40
      >>> findMaxValue({"key1": 50, "key2": {"key3": 30, "key4": {"key5": 60}}})
      60
      """
output:     max_value = float('-inf')
      for key, value in dict.items():
          if isinstance(value, dict):
              max_value = max(max_value, findMaxValue(value))
          else:
              max_value = max(max_value, value)
      return max_value