def METHOD_NAME(self) -> bool:
    if self._server_version >= ServerVersion(2, 5, 0):
        query = "RETURN gds.isLicensed()"
    else:
        query = """
        CALL gds.debug.sysInfo()
        YIELD key, value
        WHERE key = 'gdsEdition'
        RETURN
            CASE value
                WHEN 'Licensed' THEN true
                ELSE false
            END
        """
    try:
        isLicensed: bool = self._query_runner.run_query(query, custom_error=False).squeeze()
    except Exception as e:
        # AuraDS does not have `gds.debug.sysInfo`, but is always GDS EE.
        if (
            "There is no procedure with the name `gds.debug.sysInfo` "
            "registered for this database instance." in str(e)
        ):
            isLicensed = True
        else:
            raise e
    return isLicensed