def _dict_of_vars_to_vcf_file(variants, outfile):
header_lines = [<EOL>'<STR_LIT>',<EOL>'<STR_LIT>' + cluster_vcf_records_version,<EOL>'<STR_LIT>' + str(datetime.date.today()),<EOL>'<STR_LIT:\t>'.join(['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'])<EOL>]<EOL>with open(outfile, '<STR_LIT:w>') as f:<EOL><INDENT>print(*header_lines, sep='<STR_LIT:\n>', file=f)<EOL>for ref_name in sorted(variants):<EOL><INDENT>for pos in sorted(variants[ref_name]):<EOL><INDENT>for ref_string in sorted(variants[ref_name][pos]):<EOL><INDENT>alts = sorted(list(variants[ref_name][pos][ref_string]))<EOL>print(ref_name, pos + <NUM_LIT:1>, '<STR_LIT:.>', ref_string, '<STR_LIT:U+002C>'.join(alts), '<STR_LIT:.>', '<STR_LIT>', '<STR_LIT>', sep='<STR_LIT:\t>', file=f)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Input is dict made by vcf_file_read.vcf_file_to_dict_of_vars or
    vcf_file_read.vcf_file_to_dict_of_vars. Output is bare-bones VCF
    file (columns empty wherever possible