<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def project_role(self, project, id):
 """Get a role Resource. :param project: ID or key of the project to get the role from :param id: ID of the role to get """

        if isinstance(id, Number):
            id = "%s" % id
        return self._find_for_resource(Role, (project, id))