def METHOD_NAME(self):
    # dbCookie() does not support lazy opening of rpm database.
    # The following line opens the database if it is not already open.
    if self.ts.openDB() != 0:
        _logger.error(_('The openDB() function cannot open rpm database.'))
        return ''
    cookie = self.ts.METHOD_NAME()
    if not cookie:
        _logger.error(_('The dbCookie() function did not return cookie of rpm database.'))
        return ''
    return cookie