def get_highlighted_subtable(table, cell_indices):
  """Extract out the highlighted part of a table."""
  highlighted_table = []
  for (row_index, col_index) in cell_indices:
    cell = table[row_index][col_index]
    highlighted_table.append(cell)

  return highlighted_table
Extract out the highlighted part of a table.
language/totto/table_to_text_utils.py