code: def write_dict_to_new_file(file_name, localization_key_to_comment):
      
      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()
docs: 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.