<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_dict_to_new_file(file_name, localization_key_to_comment):
 """ Writes dictionary of localization keys and comments to a file. Args: localization_key_to_comment (dict):
 A mapping between localization keys and comments. file_name (str):
 The path of the file to append to. """

    output_file_descriptor = open_strings_file(file_name, "w")
    for entry_key, entry_comment in sorted(localization_key_to_comment.iteritems(), key=operator.itemgetter(1)):
        write_entry_to_file(output_file_descriptor, entry_comment, entry_key)
        output_file_descriptor.write(u'\n')
    output_file_descriptor.close()