code: def main():
      """Update names.rst and AUTHORS.rst files."""
      citation = read_citation_cff()
      citation["authors"] = remove_consortium(citation["authors"])
      citation["authors"] = sort_authors(citation["authors"])
  
      nb_authors = count_authors()
      write_names_rst(citation)
      new_nb_authors = count_authors()
      # Sanity check to make sure we have not lost anyone
      assert nb_authors <= new_nb_authors
  
      write_authors_file(citation["authors"])
  
      citation["authors"] = add_consortium(citation["authors"])
      write_citation_cff(citation)
  
file_path: nilearn/maint_tools/citation_cff_maint.py
imports: from __future__ import annotations
  from pathlib import Path
  from typing import Any
  import ruamel.yaml
label_desc: Use image node_id 16 for calling a global function with example usage: main() without return types