def METHOD_NAME(url, key, workflow_id):
    inv_gi = gi(None, url, key)
    invocations = inv_gi.workflows.METHOD_NAME(workflow_id)
    return {
        invocation["id"]: {
            "states": inv_gi.invocations.get_invocation_summary(invocation["id"])["states"],
            "history_id": invocation["history_id"],
        }
        for invocation in invocations
    }