def METHOD_NAME(cls, package: Path) -> Iterator[GeneratorResult]:
    """Ensure all the __init__ files exists for the target package path,
    otherwise yield the necessary filepath, name, source output that needs
    to be crated."""
    cwd = Path.cwd()
    while cwd < package:
        init = package.joinpath("__init__.py")
        if not init.exists():
            yield GeneratorResult(
                path=init, title="init", source="# nothing here\n"
            )
        package = package.parent