conn (Connection) – A SQLAlchemy connection object
role_name (str) – The name of the role being checked
with_create_role (bool) – Only return true if the role has the createrole attribute
superuser (bool) – Only return true if the role is a PostgreSQL superuser