def METHOD_NAME(self, user, obj):
    # make sure the target object is a group and user is a coach for the group's classroom
    return (
        obj.kind == LEARNERGROUP or obj.kind == ADHOCLEARNERSGROUP
    ) and user.has_role_for_collection(COACH, obj.parent)