code: def _col_info(data, cols):
      info = {}
      for item in data:
          for col in cols:
              col_info = info.setdefault(col, {})
              col_info["width"] = max(
                  col_info.get("width", 0), len(item[col])
              )
      return info
  
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 17 for calling a global function with example usage: _col_info(data, cols) and returns: info