How does pytest assertion rewriting handle calls to builtin functions like all/any?