parameters: (cats)
return_statement: return versions
docstring: Given an iterable of catalogs return the corresponding OS X versions
docstring_summary: Given an iterable of catalogs return the corresponding OS X versions
docstring_tokens: Given an iterable of catalogs return the corresponding OS X versions
function: def versions_from_catalogs(cats):
  	'''Given an iterable of catalogs return the corresponding OS X versions'''
  	versions = set()
  
  	for cat in cats:
  		# take the last portion of the catalog URL path
  		short_cat = cat.split('/')[-1]
  		if short_cat in apple_catalog_suffixes:
  			versions.add(apple_catalog_version_map[short_cat])
  
  	return versions
function_tokens: def versions_from_catalogs ( cats ) : versions = set ( ) for cat in cats : # take the last portion of the catalog URL path short_cat = cat . split ( '/' ) [ - 1 ] if short_cat in apple_catalog_suffixes : versions . add ( apple_catalog_version_map [ short_cat ] ) return versions