def unique_dict_key(dict_):
    """Return the only key of a single child dict."""
    keys = list(dict_.keys())
    if len(keys) != 1:
        raise ValueError(f'No unique key: {keys}')
    if not keys:
        raise ValueError('No child found')
    return keys[0]
