def apply_tag_sets(tag_sets, selection):
 for tag_set in tag_sets:
  with_tag_set = apply_single_tag_set(tag_set, selection)
  if with_tag_set:
   return with_tag_set
 return selection.with_server_descriptions([])

def apply_tag_sets ( tag_sets , selection ) : for tag_set in tag_sets : with_tag_set = apply_single_tag_set ( tag_set , selection ) if with_tag_set : return with_tag_set return selection . with_server_descriptions ( [ ] )
all servers match a list of tag sets .