def METHOD_NAME():
    for data in reader:
        in_dict = {}
        if isinstance(input_list, list):
            for input_name in input_list:
                in_dict[input_name] = data[input_name]
        elif isinstance(input_list, dict):
            for input_name in input_list.keys():
                in_dict[input_list[input_name]] = data[input_name]
        yield in_dict