def _default_role(self, read_only):
        """Return the default user role for this database."""
        if self.name == "admin":
            if read_only:
                return "readAnyDatabase"
            else:
                return "root"
        else:
            if read_only:
                return "read"
            else:
                return "dbOwner"
Return the default user role for this database.
stackoverflow/venv/lib/python3.6/site-packages/pymongo/database.py