code: def format_md(
      env: list[str], info_dict: dict[str, str | list[str]]
  ) -> list[str]:
      out: list[str] = []
      out.append(
          """\
  #### Environment variable
  
  ```bash
  {env}
  ```
  """.format(
              env="\n".join(_format_env(env))
          )
      )
      out.append("#### System information\n")
      for key, value in info_dict.items():
          if isinstance(value, list):
              out.append(_format_dropdown(key, value))
          else:
              out.append(f"`{key}`: {value}")
      return out
  
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 4 for calling a global function with example usage: format_md(env, info_dict) and returns: out