code: def pre_release(
      version: str,
      template_name: str,
      doc_version: str,
      *,
      skip_check_links: bool,
  ) -> None:
      """Generates new docs, release announcements and creates a local tag."""
      announce(version, template_name, doc_version)
      regen(version)
      changelog(version, write_out=True)
      fix_formatting()
      if not skip_check_links:
          check_links()
  
      msg = f"Prepare release version {version}"
      check_call(["git", "commit", "-a", "-m", msg])
  
      print()
      print(f"{Fore.CYAN}[generate.pre_release] {Fore.GREEN}All done!")
      print()
      print("Please push your branch and open a PR.")
  
file_path: pytest/scripts/release.py
imports: import argparse
  import os
  from pathlib import Path
  from subprocess import call
  from subprocess import check_call
  from subprocess import check_output
  from colorama import Fore
  from colorama import init
label_desc: Use image node_id 5 for calling a global function with example usage: pre_release(version, template_name, doc_version) without return types