code: def add(self, version: str) -> None:
      self._versions = [
          v for v in self._versions if v["version"] != version
      ]
      self._versions.append(
          {
              "version": version,
              "url": f"https://gpflow.github.io/GPflow/{version}/index.html",
          }
      )
      self._sorted = False
  
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 5 for calling the _Versions obj's underlying member method code with example usage: obj.add(version) without return types