code: def pretty_format(
      info_dict: dict[str, str | list[str]],
      output: t.Literal["md", "bash"],
  ) -> str:
      env = _ENVVAR + list(
          filter(lambda e: e in os.environ, _CONDITIONAL_ENVVAR)
      )
      return "\n".join(
          {"md": format_md, "bash": format_bash}[output](env, info_dict)
      )
  
file_path: BentoML/src/bentoml_cli/env.py
imports: from __future__ import annotations
  import importlib.metadata
  import os
  import platform
  import shlex
  import shutil
  import subprocess
  import sys
  import typing
  from gettext import gettext
  import click
label_desc: Use image node_id 6 for calling a global function with example usage: pretty_format(info_dict, output) and returns: str