parameters: (key_file)
docstring: Closes a key file created and opened with _create_key_file().
  
      Args:
          key_file: A file created by _create_key_file().
  
      Raises:
          IOError: An error occurred while writing to or closing the file.
docstring_summary: Closes a key file created and opened with _create_key_file().
docstring_tokens: Closes a key file created and opened with _create_key_file () .
function: def _close_key_file(key_file):
      """Closes a key file created and opened with _create_key_file().
  
      Args:
          key_file: A file created by _create_key_file().
  
      Raises:
          IOError: An error occurred while writing to or closing the file.
      """
      key_file.write('\n}\n')
      key_file.close()
function_tokens: def _close_key_file ( key_file ) : key_file . write ( '\n}\n' ) key_file . close ( )