code: def get_repo_branch(repo):
      branch = ""
      is_ci = os.environ.get("CI", "false").lower() == "true"
      is_travis = os.environ.get("TRAVIS", "false").lower() == "true"
      is_appveyor = (
          os.environ.get("APPVEYOR", "false").lower() == "true"
      )
      if not is_ci:
          branch = get_branch_via_commit(repo)
      else:
          if is_appveyor:
              branch = os.environ.get("APPVEYOR_REPO_BRANCH")
          if is_travis:
              branch = os.environ.get("TRAVIS_BRANCH")
      return branch
  
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 3 for calling a global function with example usage: get_repo_branch(repo) and returns: branch