from typing import List
from typing import Any


def read_nodes(path: str) -> List[Any]:
    """Read node names from lines.

    :param path: path to file
    :return: list of nodes
    """
    with open(path) as f:
        content = f.readlines()
    return [
        line.strip()
        for line in content
    ]