def is_student(self):
        return any((self.has_role('learner'),
                    self.has_role('student')))
Convenience method for checking if the user has 'learner' or 'student'
dataset/ETHPy150Open tophatmonocle/ims_lti_py/ims_lti_py/tool_provider.py/ToolProvider.is_student