code: def env(file=None):
      """Print the env or output as HTML if in Jupyter.
  
      :param file: The file to print to if not in a Jupyter setting. Defaults to sys.stdout
      :returns: A :class:`IPython.display.HTML` if in a Jupyter notebook setting, otherwise none.
      """
      if _in_jupyter():
          return env_html()
      else:
          print(env_table(), file=file)
  
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 7 for calling a global function with example usage: env(file) and returns: env_html