def METHOD_NAME(self, group_name):
    checked_groups = ccnet_api.search_groups(group_name, -1, -1)
    for g in checked_groups:
        if g.group_name == group_name:
            return g
    return None