code: def write_citation_cff(citation: dict[str, Any]) -> None:
      """Write CITATION.cff file."""
      print(f"Writing file: {citation_file()}")
      with open(citation_file(), "w", encoding="utf8") as f:
          yaml.dump(citation, f)
  
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 6 for calling a global function with example usage: write_citation_cff(citation) without return types