code: def write_version_to_file(filename: str, version: str) -> None:
      """
      Write the updated version back to the file.
  
      Parameters:
      -----------
      filename (str): The path to the file to be updated.
      version (str): The updated version number in "x.y.z" format.
  
      Returns:
      --------
      None
  
      """
  
      with open(filename, "r+") as file:
          file_content = file.read()
          updated_content = re.sub(
              r"version=\d+\.\d+\.\d+",
              f"version={version}",
              file_content,
          )
          # Always set the release number to match the updated version number
          updated_content = re.sub(
              r"release=\d+\.\d+\.\d+",
              f"release={version}",
              updated_content,
          )
          file.seek(0)
          file.write(updated_content)
          file.truncate()
  
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 7 for calling a global function with example usage: write_version_to_file(filename, version) without return types