def METHOD_NAME(root: str, structure: dict) -> None:
    for name, children in structure.items():
        path = os.path.join(root, name)
        assert os.path.exists(path)
        METHOD_NAME(path, children)