code: def _check_role(self):
          
          role = u'any'
          if 'role' in self.lti_kwargs:
              role = self.lti_kwargs['role']
          log.debug(
              "check_role lti_role=%s decorator_role=%s", self.role, role
          )
          if not (role == u'any' or self.is_role(self, role)):
              raise LTIRoleException('Not authorized.')
docs: Check that user is in role specified as wrapper attribute
  
          :exception: LTIRoleException if user is not in roles