def csv_writer(output_dict, input_dict, file):
    """
    This function write each line of csv file
    :param output_dict: output dictionary
    :param input_dict: input dictionary
    :param file: csv file object
    :return: None
    """
    input_keys = list(input_dict.keys())
    input_keys.sort()
    output_keys = list(output_dict.keys())
    output_keys.sort()
    for inp in input_keys:
        file.write(str(input_dict[inp]) + ',')
    file.write(',,')
    for index, out in enumerate(output_keys):
        file.write(str(output_dict[out]))
        if index < len(output_keys):
            file.write(',')
    file.write('\n')
