import tarfile


def _only_csv_file(member: tarfile.TarInfo) -> bool:
    """Selector for CSV files only in a TAR file.

    Parameters
    ----------
    member (tarfile.TarInfo)
        Tar archive member file

    Returns
    -------
    bool
        Check if the file is a CSV

    """
    return member.name.endswith('.csv')