code: def increment_version(version: str, branch_name: str) -> str:
      """
      Increment the version number based on the branch name pattern.
  
      Parameters:
      -----------
      version (str): The current version number in "x.y.z" format.
      branch_name (str): The name of the branch being checked out.
  
      Returns:
      --------
      str: The updated version number after applying the increment.
  
      """
  
      for change_type, prefixes in branch_prefixes.items():
          prefixes = prefixes or []  # If None, set to an empty list
          for prefix in prefixes:
              if branch_name.startswith(prefix):
                  increment = version_increments[change_type]
                  return (
                      increment_version_by(version, increment)
                      if increment
                      else version
                  )
      return version
  
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 1 for calling a global function with example usage: increment_version(version, branch_name) and returns: version, unknown