def determine_file_extension_based_on_format(format_specifier):
if format_specifier == FMT_INI:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>if format_specifier == FMT_DELIMITED:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>if format_specifier == FMT_XML:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>if format_specifier == FMT_JSON:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>if format_specifier == FMT_YAML:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>raise ValueError('<STR_LIT>'.format(format_specifier))<EOL>
returns file extension string