def METHOD_NAME(expected_dict, actual_dict):
    if len(expected_dict) != len(actual_dict):
        return False
    for key in expected_dict:
        key_str = str(key)
        val = expected_dict[key_str]
        if isinstance(val, dict):
            if not METHOD_NAME(val, actual_dict.get(key_str, {})):
                return False
        else:
            if key_str not in actual_dict or actual_dict[key_str] != str(val):
                return False
    return True