from typing import TextIO
import csv


def process_ethnics(data: TextIO):
    """Returns a generator of ethnics dictionary

    Args:
        data (TextIO): A file-like object of ethnics data
    """
    next(data)
    datas = csv.reader(data)
    return [item for item in datas]