code: def format_bash(
      env: list[str], info_dict: dict[str, str | list[str]]
  ) -> list[str]:
      out: list[str] = []
      out.extend(_format_env(env))
      for key, value in info_dict.items():
          if isinstance(value, list):
              out.append(
                  f"{key}=( "
                  + " ".join(map(lambda s: f'"{s}"', 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 5 for calling a global function with example usage: format_bash(env, info_dict) and returns: out