def _nested_dict(dictionary: dict) -> bool:
    return any((isinstance(value, dict) for value in dictionary.values()))
def _nested_dict(dictionary: dict) -> bool:
    return any((isinstance(value, dict) for value in dictionary.values()))