code: def write(self, docs_dir: Path) -> None:
      with _Versions._versions_json(docs_dir).open(
          "wt"
      ) as versions_file:
          json.dump(self._versions, versions_file, indent=2)
  
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 4 for calling the _Versions obj's underlying member method code with example usage: obj.write(docs_dir) without return types