code: def main() -> None:
      parser = argparse.ArgumentParser(
          description="Build the GPflow documentation."
      )
      parser.add_argument(
          "branch",
          type=str,
          choices=[b.value for b in Branch],
          help="Git branch that is currently being built.",
      )
      parser.add_argument(
          "docs_dir",
          type=Path,
          help="To read / write docs versions from.",
      )
      args = parser.parse_args()
      branch = Branch(args.branch)
      docs_dir = args.docs_dir
  
      versions = _Versions.read(docs_dir)
      versions.add(branch.version)
      versions.sort()
      versions.write(docs_dir)
  
      _create_root_redirect(versions, docs_dir)
  
file_path: GPflow/doc/update_versions.py
imports: import argparse
  import json
  from pathlib import Path
  from typing import Any, List, Mapping, Optional
  from packaging.version import Version
  from versions import Branch
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types