def get_lobbies(session, game_id):
if isinstance(game_id, str):<EOL><INDENT>game_id = lookup_game_id(game_id)<EOL><DEDENT>lobbies = _make_request(session, LOBBY_URL, game_id)<EOL>for lobby in lobbies:<EOL><INDENT>if len(lobby['<STR_LIT>']) > <NUM_LIT:0>:<EOL><INDENT>lobby['<STR_LIT>'] = lobby['<STR_LIT>'][:-<NUM_LIT:1>].split('<STR_LIT:|>')<EOL><DEDENT><DEDENT>return lobbies<EOL>
Get lobbies for a game.