code: def get_version(with_git_hash: bool = False) -> str:
      """Get the PyKEEN version string, including a git hash.
  
      :param with_git_hash:
          If set to True, the git hash will be appended to the version.
      :return: The PyKEEN version as well as the git hash, if the parameter with_git_hash was set to true.
      """
      return (
          f"{VERSION}-{get_git_hash(terse=True)}"
          if with_git_hash
          else VERSION
      )
  
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 4 for calling a global function with example usage: get_version(with_git_hash) and returns: unknown