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 e.g. 1.10rc1 -> [1, 10]
      lastpart = ""
      for dig in parts[-1]:
          if dig.isdigit():
              lastpart += dig
          else:
              break
      parts[-1] = lastpart
      return ".".join(parts)
  
imports: import os
  import json
  from subprocess import check_output
  from collections import OrderedDict, defaultdict
  from collections.abc import Mapping
  import glob
  from contextlib import contextmanager
  import requests
  from requests_oauthlib import OAuth2
label_desc: Use image node_id 8 for calling a global function with example usage: get_sympy_short_version(version) and returns: str