#NEWLINE# def get_teams( ids ) : #NEWLINE# #INDENT# 'Gets teams by ID\n\n    ids       list<str>     the IDs of the teams\n\n    return    list<Team>    the teams\n    ' #NEWLINE# teams = cassiopeia . core . requests . call_with_ensured_size ( cassiopeia . dto . teamapi . get_teams_by_id , 10 , ids ) #NEWLINE# if ( cassiopeia . core . requests . load_policy is cassiopeia . type . core . common . LoadPolicy . eager ) : #NEWLINE# #INDENT# summoner_ids = set ( ) #NEWLINE# for ( _ , team ) in teams . items ( ) : #NEWLINE# #INDENT# summoner_ids |= team . summoner_ids #NEWLINE# #UNINDENT# ( cassiopeia . riotapi . get_summoners_by_id ( list ( summoner_ids ) ) if summoner_ids else None ) #NEWLINE# #UNINDENT# return [ cassiopeia . type . core . team . Team ( teams [ id_ ] ) for id_ in ids ]