def METHOD_NAME(technologies_parsed):
    # sometimes we don't get those keys. For instance Rottnest island don't have any storage.
    if "battery" and "flywheel" in technologies_parsed:
        storage_techs = technologies_parsed["battery"] + technologies_parsed["flywheel"]
    else:
        storage_techs = 0
    battery_production = storage_techs if storage_techs > 0 else 0
    battery_storage = storage_techs if storage_techs < 0 else 0