code: def _format_table_data(data, cols):
      return [
          {col: _format_table_val(item.get(col)) for col in cols}
          for item in data
      ]
  
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 15 for calling a global function with example usage: _format_table_data(data, cols) and returns: unknown