from pathlib import Path


def read_awa_file(file):
    """Read a names txt file from the AWA dataset"""
    all_names = []
    with Path(file).open() as f:
        for line in f:
            class_name = line.split("\t")[1].strip()
            all_names.append(class_name)
        return tuple(all_names)