<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_references(reference_lines, recid=None, override_kbs_files=None, reference_format=u"{title} {volume} ({year}) {page}", linker_callback=None):
 """Parse a list of references Given a list of raw reference lines (list of strings), output a list of dictionaries containing the parsed references """

    # RefExtract knowledge bases
    kbs = get_kbs(custom_kbs_files=override_kbs_files)
    # Identify journal titles, report numbers, URLs, DOIs, and authors...
    processed_references, counts, dummy_bad_titles_count = \
        parse_references_elements(reference_lines, kbs, linker_callback)

    return (build_references(processed_references, reference_format),
            build_stats(counts))