code: def _run(*args: str) -> Optional[str]:
      with open(os.devnull, "w") as devnull:
          try:
              ret = check_output(  # noqa: S603,S607
                  args,
                  cwd=os.path.dirname(__file__),
                  stderr=devnull,
              )
          except (CalledProcessError, FileNotFoundError):
              return None
          else:
              return ret.strip().decode("utf-8")
  
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 3 for calling a global function with example usage: _run() and returns: ret, None