code: def _update_column_widths(widths, vals, max_width):
      for col, val in zip(range(len(vals)), vals):
          widths[col] = min(
              max(len(val or ""), widths.get(col, 0)), max_width
          )
  
imports: import curses
  import logging
  from tabview import tabview
label_desc: Use image node_id 4 for calling the Viewer obj's underlying member method code with example usage: obj._update_column_widths(widths, vals, max_width) without return types