def METHOD_NAME(path: Path) -> Set[str]:
    """Reads ignore file and filter and empty lines. This will also remove patterns that start with a `/`. That's done
    to allow `glob` to simulate the behavior done by `git` where it interprets that as a root path.
    Parameters
    ----------
    path: Path
        Path to .lightningignore file or equivalent.
    Returns
    -------
    Set[str]
        Set of unique lines.
    """
    raw_lines = path.open().readlines()
    return _parse_lightningignore(raw_lines)