def METHOD_NAME(reader, input_list):
    if isinstance(input_list, list) and len(input_list) == 1:
        input_name = input_list[0]
        def gen():
            in_dict = {}
            for i, data in enumerate(reader()):
                imgs = np.array(data[0])
                in_dict[input_name] = imgs
                yield in_dict
        return gen
    if isinstance(input_list, list) and len(input_list) > 1:
        def gen():
            for idx, data in enumerate(reader()):
                in_dict = {}
                for i in range(len(input_list)):
                    intput_name = input_list[i]
                    feed_data = np.array(data[0][i])
                    in_dict[intput_name] = feed_data
                yield in_dict
        return gen