def issue_completed(issue):
 labels = issue.get('labels', [])
 return any(((label['name'] == 'reso: completed') for label in labels))

def issue_completed ( issue ) : labels = issue . get ( 'labels' , [ ] ) return any ( ( ( label [ 'name' ] == 'reso: completed' ) for label in labels ) )
returns true iff this issue is has been resolved as completed .