code: def env_table(
      tablefmt: str = "github",
      headers: Tuple[str, str] = ("Key", "Value"),
  ) -> str:
      """Generate a table describing the environment in which PyKEEN is being run."""
      import platform
      import time
  
      import torch
      from tabulate import tabulate
  
      rows = [
          ("OS", os.name),
          ("Platform", platform.system()),
          ("Release", platform.release()),
          ("Time", str(time.asctime())),
          (
              "Python",
              f"{sys.version_info[0]}.{sys.version_info[1]}.{sys.version_info[2]}",
          ),
          ("PyKEEN", get_version()),
          ("PyKEEN Hash", get_git_hash()),
          ("PyKEEN Branch", get_git_branch()),
          ("PyTorch", torch.__version__),
          ("CUDA Available?", str(torch.cuda.is_available()).lower()),
          ("CUDA Version", torch.version.cuda or "N/A"),
          ("cuDNN Version", torch.backends.cudnn.version() or "N/A"),
      ]
      return tabulate(rows, tablefmt=tablefmt, headers=headers)
  
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 5 for calling a global function with example usage: env_table(tablefmt, headers) and returns: tabulate