def has_privileges(name,
        object_name,
        object_type,
        privileges=None,
        grant_option=None,