code: def get_sympy_short_version(version):
      """
      Get the short version of SymPy being released, not including any rc tags
      (like 0.7.3)
      """
      parts = version.split(".")
      # Remove rc tags
      # Handle both 1.0.rc1 and 1.1rc1
      if not parts[-1].isdigit():
          if parts[-1][0].isdigit():
              parts[-1] = parts[-1][0]
          else:
              parts.pop(-1)
      return ".".join(parts)
  
file_path: sympy/release/authors.py
imports: import os
  from pathlib import Path
  from subprocess import check_output
  import unicodedata
label_desc: Use image node_id 5 for calling a global function with example usage: get_sympy_short_version(version) and returns: str