code: def compare_versions(version1: str, version2: str) -> int:
      """
      Compare two strings of version numbers.
  
      Parameters:
      -----------
      version1 (str): The first version number to compare in "x.y.z" format.
      version2 (str): The second version number to compare in "x.y.z" format.
  
      Returns:
      --------
      int: -1 if version1 < version2, 1 if version1 > version2, 0 if they are equal.
  
      """
  
      def parse_version(version_str: str) -> Tuple[int, ...]:
          return tuple(map(int, version_str.split(".")))
  
      parsed_version1 = parse_version(version1)
      parsed_version2 = parse_version(version2)
  
      if parsed_version1 < parsed_version2:
          return -1
      elif parsed_version1 > parsed_version2:
          return 1
      else:
          return 0
  
file_path: FinQuant/scripts/update_version.py
imports: import argparse
  import re
  import subprocess
  import sys
  from typing import Optional, Tuple
label_desc: Use image node_id 6 for calling a global function with example usage: compare_versions(version1, version2) and returns: tuple, unknown, int, int