from typing import List
from typing import Tuple


def children(value, path=None) -> List[Tuple[tuple, object]]:
    """
    Returns list of tuples containing the full path to the value
    and the value itself
    """
    path = path or []

    return sum([
        children(value=value, path=path+[key])
        for key, value in value.items()
    ], []) if isinstance(value, dict) and value else [
        (tuple(path), value)
    ]