def METHOD_NAME(dir_: PathLike, file_out: PathLike):
    """Creates a file (file_out) with a visual tree representing the file
    hierarchy at a given directory
    .. note::
        Does not display empty directories.
    """
    from pathlib import Path
    file_content = ""
    for path in sorted(Path(dir_).rglob("*")):
        if path.is_dir() and not any(path.iterdir()):
            continue
        depth = len(path.relative_to(dir_).parts)
        spacer = "    " * depth
        file_content = file_content + f"{spacer}+ {path.name}\n"
    print(file_content)
    Path(file_out).write_text(file_content)