def UsersOwnersOfHotlists(hotlists):
  """Returns a set of all users who are owners in the given hotlists."""
  result = set()
  for hotlist in hotlists:
    result.update(hotlist.owner_ids)
  return result