code: def get_version(repo_path):
      on_rtd = os.environ.get("READTHEDOCS") == "True"
      version_file = repo_path / "src/nptsne/_version.txt"
      # print('version file: ', version_file)
      with open(version_file) as f:
          raw_version = f.read().strip()
      # Readthedocs does a limited clone so the repo commit counting does not work
      if on_rtd:
          return raw_version
      # print('repo dir: ', repo_path)
      repo = Repo(repo_path)
      # commit = list(repo.iter_commits())[0].hexsha
      tag = get_current_tag(repo)
  
      # If a tag starts with the letter v then just use the given version from the file
      if tag is not None:
          return raw_version
  
      #
      build_number = str(
          get_git_derived_build_number(repo, version_file)
      )
  
      branch = get_repo_branch(repo)
      if branch.startswith("release"):
          return raw_version + "rc" + build_number
  
      return raw_version + ".dev" + build_number
  
file_path: nptsne/tools/version_util.py
imports: from pathlib import Path
  import tempfile
  import os
  from git import Repo
label_desc: Use image node_id 5 for calling a global function with example usage: get_version(repo_path) and returns: unknown, raw_version, raw_version, unknown