code: def run_cmd(cmd: list[str]) -> list[str]:
      return (
          subprocess.check_output(cmd).decode("utf-8").split("\n")[:-1]
      )
  
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 1 for calling a global function with example usage: run_cmd(cmd) and returns: subprocess