@property
    @memoized
    def group(self):
        try:
            group = Group.get(self.group_id)
            assert group.doc_type is 'Group'
            return group
        except (ResourceNotFound, __HOLE__):
            return None
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/cloudcare/models.py/AppGroup.group