def _get_table_rank_and_score(
    scored_hits,
    table_id,
):
  """Returns rank and score of 'table_id'."""
  for rank, (current_table_id, score) in enumerate(scored_hits):
    if current_table_id == table_id:
      return rank + 1, score
  return None