code: def get_git_branch() -> Optional[str]:
      """Get the PyKEEN branch, if installed from git in editable mode.
  
      :return:
          Returns the name of the current branch, or None if not installed in development mode.
      """
      return _run("git", "branch", "--show-current")
  
file_path: pykeen/src/pykeen/version.py
imports: import os
  import sys
  from functools import lru_cache
  from subprocess import CalledProcessError, check_output
  from typing import Optional, Tuple
label_desc: Use image node_id 2 for calling a global function with example usage: get_git_branch() and returns: _run