code: def get_version_info(source_root):
      # Adding the git rev number needs to be done inside
      # write_version_py(), otherwise the import of scipy.version messes
      # up the build under Python 3.
      FULLVERSION = VERSION
      if os.path.exists(os.path.join(source_root, ".git")):
          GIT_REVISION, COMMIT_COUNT = git_version(source_root)
      elif os.path.exists("scipy/version.py"):
          # must be a source distribution, use existing version file
          # load it as a separate module to not load scipy/__init__.py
          import runpy
  
          ns = runpy.run_path("scipy/version.py")
          GIT_REVISION = ns["git_revision"]
          COMMIT_COUNT = ns["git_revision"]
      else:
          GIT_REVISION = "Unknown"
          COMMIT_COUNT = "Unknown"
  
      if not ISRELEASED:
          FULLVERSION += ".dev0+" + COMMIT_COUNT + "." + GIT_REVISION
  
      return FULLVERSION, GIT_REVISION, COMMIT_COUNT
  
imports: import os
  import subprocess
  import argparse
label_desc: Use image node_id 1 for calling a global function with example usage: get_version_info(source_root) and returns: FULLVERSION,  GIT_REVISION,  COMMIT_COUNT