code: def _format_detail_val(val, indent, terminal_width):
      if isinstance(val, list):
          if val:
              val_indent = " " * (indent + 4)
              val_width = terminal_width - len(val_indent)
              return "\n" + "\n".join(
                  [
                      click.wrap_text(
                          x, val_width, val_indent, val_indent
                      )
                      for x in val
                  ]
              )
          return " -"
      return f" {val}"
  
imports: import functools
  import logging
  import os
  import sys
  import shutil
  import typing
  import click
  from guild import ansi_util
  from guild import config
label_desc: Use image node_id 19 for calling a global function with example usage: _format_detail_val(val, indent, terminal_width) and returns: str, val, str, unknown