def has_role(self, role):
        return self.roles and any([re.search(role, our_role, re.I)
                                   for our_role in self.roles])
Check whether the Launch Paramters set the role.
dataset/ETHPy150Open tophatmonocle/ims_lti_py/ims_lti_py/tool_provider.py/ToolProvider.has_role