def METHOD_NAME():
    """
    Requests json data and extracts generation information.
    Returns a dictionary.
    """
    req = get_session_with_legacy_adapter().get(GENERATION_LINK)
    raw_json_data = req.json()
    generation_data = raw_json_data["data"]["datasets"]
    production = {}
    for datapoint in generation_data:
        gen_type = datapoint["label"]
        val = float(max(datapoint["data"]))
        production[gen_type] = val
    for k in list(production.keys()):
        if k not in GENERATION_MAPPING.keys():
            # Get rid of unneeded keys.
            production.pop(k)
    return production