def get_sub_row_by(rows, **conditions):
  """Returns a table row that matches conditions."""
  for table_row in rows():
    if table_row.matches_conditions(**conditions):
      return table_row
  return None