def domain_id_fn(client_id: str) -> int:
  """Returns domain id for client id."""
  # These domain ids are based on NIST data source. For more details, see
  # https://s3.amazonaws.com/nist-srd/SD19/sd19_users_guide_edition_2.pdf.
  cid = int(client_id.split('_')[0][1:])
  if cid >= 2100 and cid <= 2599:
    return 0  # HIGH_SCHOOL.
  return 1  # CENSUS_FIELD.