in docker-compose/generate-config/config.py [0:0]
def get_at_path(obj: dict, keys: List[str]) -> Any:
assert isinstance(obj, dict)
key = keys[0]
rest = keys[1:]
if key not in obj:
obj[key] = {}
if len(keys) == 1:
return obj[key]
return get_at_path(obj[key], rest)