Also check that `kwargs` is empty to prevent the user from relying on the specific choice of `flow_func`.