code: def measure_table(
      rows: t.Iterable[t.Tuple[str, str]]
  ) -> t.Tuple[int, ...]:
      widths: t.Dict[int, int] = {}
  
      for row in rows:
          for idx, col in enumerate(row):
              widths[idx] = max(widths.get(idx, 0), term_len(col))
  
      return tuple(y for x, y in sorted(widths.items()))
  
imports: import typing
  from contextlib import contextmanager
  from gettext import gettext
  from ._compat import term_len
  from .parser import split_opt
label_desc: Use image node_id 1 for calling a global function with example usage: measure_table(rows) and returns: tuple