from typing import Any
from typing import Dict


def _get_specific(name: Any, value: Dict[Any, Any], parent: Dict[Any, Any]) -> Any:
    """Attempts to find a key in value, and if there is no such key in it,
    attempts to find it in the parent element."""
    return value.get(name, parent.get(name))