def get_current_game(summoner_id):
    region = cassiopeia.type.core.common.Region(cassiopeia.dto.requests.region)
    platform = cassiopeia.type.core.common.Platform[region.name]
    request = "https://{server}.api.pvp.net/observer-mode/rest/consumer/getSpectatorGameInfo/{platform}/{summoner_id}".format(server=cassiopeia.dto.requests.region, platform=platform.value, summoner_id=summoner_id)
    try:
        return cassiopeia.type.dto.currentgame.CurrentGameInfo(cassiopeia.dto.requests.get(request, include_base=False))
    except cassiopeia.type.api.exception.APIError as e:
        if e.error_code == 404:
            return None
        raise e
https://developer.riotgames.com/api/methods#!/976/3336
dataset/ETHPy150Open meraki-analytics/cassiopeia/cassiopeia/dto/currentgameapi.py/get_current_game